Even if the user supplied custom content-length header it
should be set to 0 for both HTTPREQ_POST and HTTPREQ_PUT flows.
This is what we do already in HTTPREQ_POST_FORM and what we
did in the HTTPREQ_POST case prior to commit:
Otherwise, if the user set custom header we'd end up skipping
the content-length header altogether.
Signed-off-by: Isaac Boukris <firstname.lastname@example.org>
Reported-by: Hölzl, Dominik <Dominik.Hoelzl@fabasoft.com>
- While negotiating auth during PUT/POST if a user-specified
Content-Length header is set send 'Content-Length: 0'.
This is what we do already in HTTPREQ_POST_FORM and what we did in the
HTTPREQ_POST case (regression since afd288b).
Prior to this change no Content-Length header would be sent in such a
Reported-by: Dominik Hölzl