]> git.ipfire.org Git - thirdparty/curl.git/commit
http: fix the broken >3 digit response code detection
authorDaniel Stenberg <daniel@haxx.se>
Fri, 17 Sep 2021 14:31:25 +0000 (16:31 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 17 Sep 2021 15:52:00 +0000 (17:52 +0200)
commitbeb8990d934a01acf103871e463d4e61afc9ded2
treeaa028ecfbe0b875d00180c28feb7fc61caf09eaa
parentb0eda8dc6eb7be3d3e0762be5fb2a60989c2f77b
http: fix the broken >3 digit response code detection

When the "reason phrase" in the HTTP status line starts with a digit,
that was treated as the forth response code digit and curl would claim
the response to be non-compliant.

Added test 1466 to verify this case.

Regression brought by 5dc594e44f73b17
Reported-by: Glenn de boer
Fixes #7738
Closes #7739
lib/http.c
tests/data/Makefile.inc
tests/data/test1466 [new file with mode: 0644]