mirror of
https://github.com/curl/curl.git
synced 2026-04-14 23:51:42 +03:00
http: fix for unfolding line starting with TAB
It should still insert a (single) space when unfolding Follow-up to9941e7c95bfollowing up to67ae101666. Updated test 1274 and 1940 accordingly. Closes #20029
This commit is contained in:
parent
481f11d96f
commit
6c7bc9871f
4 changed files with 13 additions and 7 deletions
|
|
@ -16,6 +16,9 @@ Date: Tue, 09 Nov 2010 14:49:00 GMT%CR
|
|||
Server: test-server/%CR
|
||||
fake%CR
|
||||
folded%CR
|
||||
Tabs: tab-instead/%TAB%CR
|
||||
%TABonly%CR
|
||||
%TAB mixed%CR
|
||||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT%CR
|
||||
ETag: "21025-dc7-39462498"%CR
|
||||
Content-Length: 6%CR
|
||||
|
|
@ -52,6 +55,7 @@ Accept: */*
|
|||
HTTP/1.1 200 OK
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/ fake folded
|
||||
Tabs: tab-instead/ only mixed
|
||||
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
|
||||
ETag: "21025-dc7-39462498"
|
||||
Content-Length: 6
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@ Fold: is
|
|||
folding a%repeat[5 x ]%
|
||||
line
|
||||
Content-Length: 0
|
||||
Test:%TAB
|
||||
%TAB%SP
|
||||
%TABword
|
||||
Set-Cookie: onecookie=data;
|
||||
Set-Cookie: secondcookie=2data;
|
||||
Set-Cookie: cookie3=data3;
|
||||
|
|
@ -62,6 +65,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|||
Fold == is folding a line
|
||||
Blank ==%SP
|
||||
Blank2 ==%SP
|
||||
Test == word
|
||||
</stdout>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ static void t1940_showem(CURL *curl, int header_request, unsigned int type)
|
|||
"fold",
|
||||
"blank",
|
||||
"Blank2",
|
||||
"Test",
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue