http: do not use new API

fixes regressions introduced with davix fix backport

Acked-by:
Target: 2.8, 2.7, 2.6
Require-book: no
Require-notes: no