From c50b878c15e029111787f6019b46581ecbc30c62 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 29 Nov 2016 16:22:35 +0100 Subject: 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. --- tests/data/test1097 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'tests/data/test1097') diff --git a/tests/data/test1097 b/tests/data/test1097 index 3b733a55a..7512a2e7d 100644 --- a/tests/data/test1097 +++ b/tests/data/test1097 @@ -15,27 +15,25 @@ HTTP proxy NTLM auth HTTP/1.1 200 We are fine and cool Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2 Content-Length: 27 - + This is all fine and dandy +# This is the CONNECT response HTTP/1.1 200 We are fine and cool Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2 -Content-Length: 27 - -This is all fine and dandy + HTTP/1.1 200 We are fine and cool Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2 -Content-Length: 27 - + HTTP/1.1 200 We are fine and cool Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2 Content-Length: 27 - + This is all fine and dandy -- cgit v1.2.3