Fix handling of HTTP 1.0 responses with Connection: Keep-Alive
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 9 Jan 2010 13:13:15 +0000 (13:13 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 9 Jan 2010 13:13:15 +0000 (13:13 +0000)
commitcc64d59d8132350cadf7adf91857597795eb9090
treee396732e643488112579f1f7209f3129cfe05e33
parentaf12337a8b3b2f2183ce1ad01916938db6321b7f
Fix handling of HTTP 1.0 responses with Connection: Keep-Alive

An HTTP 1.0 response can keepalive and have a Connection-Length: header,
and this is seen in some cases with the initial redirect when we connect
to a VPN server (Red Hat bug #553817). Fix and clean up the response
handling code accordingly.

I _really_ wish I didn't have to write my own HTTP code, and that one of
the available libraries was actually able to support SSL connections
with a certificate from a TPM.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
http.c