Reset hdr_parsing_completed for WSI_STATE_HTTP:
authorAndrew Canaday <andrew.canaday@nytimes.com>
Wed, 6 Aug 2014 12:58:23 +0000 (08:58 -0400)
committerAndy Green <andy.green@linaro.org>
Thu, 7 Aug 2014 04:13:28 +0000 (12:13 +0800)
commite917345e058365479888560e09e7c0906401c262
tree2211d419bf0540c6f0c97e21bbf41a07c506f6dc
parent67f94599d2e383687f6615b4822907133e590d5e
Reset hdr_parsing_completed for WSI_STATE_HTTP:

This fixes a bug where a client issues two GET requests on the same connection
(keep-alive). If the second request is split into two reads, the
hdr_parsing_complete flag gets us into trouble by ending the request read two
early and giving us bogus data.
lib/handshake.c