... which then also includes negative ones as test 1430 uses.
This makes native + hyper backend act identically on this and therefore
test 1430 can now be enabled when building with hyper. Adjust test 1431
as well.
Closes #7909
/* There can only be a 4th response code digit stored in 'digit4' if
all the other fields were parsed and stored first, so nc is 5 when
- digit4 a digit */
- else if(ISDIGIT(digit4)) {
+ digit4 a digit.
+
+ The sscanf() line above will also allow zero-prefixed and negative
+ numbers, so we check for that too here.
+ */
+ else if(ISDIGIT(digit4) || (k->httpcode < 100)) {
failf(data, "Unsupported response code in HTTP response");
return CURLE_UNSUPPORTED_PROTOCOL;
}
1156
1160
1417
-1430
-1431
1455
1456
1525
</info>
<reply>
-<data>
+<data nocheck="yes">
HTTP/1.1 -12 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Accept: */*\r
\r
</protocol>
+# 1 - CURLE_UNSUPPORTED_PROTOCOL
+# Due to invalid HTTP response code
+<errorcode>
+1
+</errorcode>
</verify>
</testcase>
</info>
<reply>
-<data>
+<data nocheck="yes">
HTTP/1.1 2 OK
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Accept: */*\r
\r
</protocol>
+<errorcode>
+1
+</errorcode>
</verify>
</testcase>