Test 206: Use a Content-Length header for the 407 response
authorFabian Keil <fk@fabiankeil.de>
Wed, 21 Nov 2012 15:01:59 +0000 (16:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 21 Nov 2012 21:13:44 +0000 (22:13 +0100)
Otherwise curl would have to guess where the body ends.

tests/data/test206

index 5e4fc5c..9c1e024 100644 (file)
@@ -20,6 +20,7 @@ connection-monitor
 <data>
 HTTP/1.1 407 Authorization Required to proxy me my dear\r
 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"\r
+Content-Length: 33\r
 \r
 And you should ignore this data.
 </data>
@@ -46,6 +47,7 @@ Server: no
 <datacheck>
 HTTP/1.1 407 Authorization Required to proxy me my dear\r
 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"\r
+Content-Length: 33\r
 \r
 HTTP/1.1 200 OK swsbounce\r
 Server: no