CA-31448: unconditionally read all the HTTP headers resulting from an HTTP PUT, not just the first line.
CA-31448: unconditionally read all the HTTP headers resulting from an HTTP PUT, not just the first line.

xapi HTTP handlers (eg the patch upload one) expext to be able to write a complete set of HTTP response headers, without someone closing the socket and triggering an EPIPE.

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>

johnelse/xcp-rrdd,djs55/xcp-rrdd,koushikcgit/xcp-rrdd,koushikcgit/xcp-rrdd,djs55/squeezed,koushikcgit/xcp-networkd,sharady/xcp-networkd,sharady/xcp-networkd,djs55/xcp-networkd,simonjbeaumont/xcp-rrdd,koushikcgit/xcp-networkd,simonjbeaumont/xcp-rrdd,koushikcgit/xcp-rrdd,johnelse/xcp-rrdd,djs55/xcp-rrdd,djs55/xcp-networkd,robhoes/squeezed