From 8123560d4496992baecc0c7a05e56ce48e6b6273 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 Mar 2018 23:38:16 +0100 Subject: HTTP: allow "header;" to replace an internal header with a blank one Reported-by: Michael Kaufmann Fixes #2357 Closes #2362 --- tests/data/test1292 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 tests/data/test1292 (limited to 'tests/data/test1292') diff --git a/tests/data/test1292 b/tests/data/test1292 new file mode 100644 index 000000000..880a4b465 --- /dev/null +++ b/tests/data/test1292 @@ -0,0 +1,50 @@ + + + +HTTP +HTTP GET +HTTP added headers +HTTP replaced headers + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake swsclose +Content-Type: text/html +Funny-head: yesyes + + + + +# +# Client-side + + +http + + +Replaced internal headers with a blank one + + + -H "Host;" -H "Accept;" http://%HOSTIP:%HTTPPORT/1292 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1292 HTTP/1.1 +Host: +Accept: + + + + -- cgit v1.2.3