diff options
author | warp kawada <warp.kawada@gmail.com> | 2011-09-08 15:39:39 -0700 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-09-13 16:17:21 -0700 |
commit | aff70e2e9534eecb9e756d2104efa52e5d8b0462 (patch) | |
tree | 86069726bec4662e6788a5e76814eacf6c0a55f1 /tests/data/test4 | |
parent | 6790a543d4b692e0f62971804606fdcbcf84a292 (diff) | |
download | curl-aff70e2e9534eecb9e756d2104efa52e5d8b0462.tar.gz |
Curl_add_custom_headers: support headers with no data
A custom HTTP header ending in a semicolon instead of a colon
will be treated as a header to be added without any data
portion.
Diffstat (limited to 'tests/data/test4')
-rw-r--r-- | tests/data/test4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/data/test4 b/tests/data/test4 index ce6bfc8f0..df69d3274 100644 --- a/tests/data/test4 +++ b/tests/data/test4 @@ -30,7 +30,7 @@ http Replaced internal and added custom HTTP headers </name> <command> - -H "extra-header: here" -H "Accept: replaced" http://%HOSTIP:%HTTPPORT/4 + -H "extra-header: here" -H "Accept: replaced" -H "X-Custom-Header;" -H "X-Test: foo; " -H "X-Test:" -H "X-Test2: foo;" -H "X-Test3: " -H "X-Test4; " -H "X-Test5;ignored" http://%HOSTIP:%HTTPPORT/4 </command> </client> @@ -45,6 +45,9 @@ GET /4 HTTP/1.1 Host: %HOSTIP:%HTTPPORT
extra-header: here
Accept: replaced
+X-Custom-Header:
+X-Test: foo;
+X-Test2: foo;
</protocol> </verify> |