mirror of
https://github.com/curl/curl.git
synced 2026-05-30 10:17:28 +03:00
http: return error for a second Location: header
Unless it is identical to the previous one.
Follow-up to dbcaa00657
Adjusted test 580, added test 772 and 773
Fixes #19130
Reported-by: Jakub Stasiak
Closes #19134
This commit is contained in:
parent
cbd7823fd1
commit
9596c4a258
5 changed files with 138 additions and 18 deletions
|
|
@ -20,6 +20,14 @@ Connection: close
|
|||
Location: and there's a second one too! / moo.html
|
||||
|
||||
</data>
|
||||
<datacheck>
|
||||
HTTP/1.1 302 eat this!
|
||||
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Location: this-is-the-first.html
|
||||
Content-Length: 0
|
||||
Connection: close
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
|
|
@ -51,5 +59,8 @@ Host: %HOSTIP:%HTTPPORT
|
|||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<errorcode>
|
||||
8
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue