mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:27:23 +03:00
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.
This commit is contained in:
parent
6790a543d4
commit
aff70e2e95
4 changed files with 34 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue