]> git.ipfire.org Git - thirdparty/curl.git/commit
http: better error message for HTTP/1.x response without status line
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Mon, 4 Mar 2024 17:15:08 +0000 (18:15 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Mar 2024 15:02:44 +0000 (16:02 +0100)
commitdf1fcb41e2a0816c1b024507cce03557d96dc473
tree43a3e8d788218ddc1ff37cb18cf4193d40c6127a
parenta54d0bdc653640d7272331a9fce1dcdd46fbf9cc
http: better error message for HTTP/1.x response without status line

If a response without a status line is received, and the connection is
known to use HTTP/1.x (not HTTP/0.9), report the error "Invalid status
line" instead of "Received HTTP/0.9 when not allowed".

Closes #13045
lib/http.c
tests/data/Makefile.inc
tests/data/test1479 [new file with mode: 0644]
tests/data/test1480 [new file with mode: 0644]