From aff70e2e9534eecb9e756d2104efa52e5d8b0462 Mon Sep 17 00:00:00 2001 From: warp kawada Date: Thu, 8 Sep 2011 15:39:39 -0700 Subject: 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. --- tests/data/test4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/data/test4') 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 - -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 @@ -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; -- cgit v1.2.3