sws: search for "Testno:" header uncondtionally if no testno

Even if the initial request line wasn't found. With the fix to 1455, the
test number is now detected correctly.

(Problem found when running tests in random order.)

Closes #4744
This commit is contained in:
Daniel Stenberg 2019-12-19 16:45:53 +01:00
parent b4c9982382
commit 25b69c482f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 25 additions and 18 deletions

View file

@ -37,7 +37,7 @@ http
HTTP GET when PROXY Protocol enabled
</name>
<command>
http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol
http://%HOSTIP:%HTTPPORT/1455 --haproxy-protocol -H "Testno: 1455"
</command>
<features>
proxy
@ -58,6 +58,7 @@ proxy-line
GET /1455 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
Testno: 1455
</protocol>
</verify>