]> git.ipfire.org Git - thirdparty/curl.git/commit
CONNECT: reject TE or CL in 2xx responses
authorDaniel Stenberg <daniel@haxx.se>
Tue, 29 Nov 2016 15:22:35 +0000 (16:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 1 Dec 2016 15:18:36 +0000 (16:18 +0100)
commitc50b878c15e029111787f6019b46581ecbc30c62
tree18609b68020901e089b2792f37f5a5c899bf93ef
parentaab33215afb71c52404419bfa0783620a0b5cb75
CONNECT: reject TE or CL in 2xx responses

A server MUST NOT send any Transfer-Encoding or Content-Length header
fields in a 2xx (Successful) response to CONNECT. (RFC 7231 section
4.3.6)

Also fixes the three test cases that did this.
lib/http_proxy.c
tests/data/test1097
tests/data/test1230
tests/data/test1525