]> granicus.if.org Git - curl/commit
http: fix for tiny "HTTP/0.9" response
authorDaniel Stenberg <daniel@haxx.se>
Mon, 13 Aug 2018 10:12:14 +0000 (12:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 13 Aug 2018 21:16:01 +0000 (23:16 +0200)
commit8440616f53056b2330393d1b0740c89a30376c67
treeea2ea2300488f3c792ff7cf2a86e5047a3814e2f
parent233908a55aa041d1ad3d901f9c3b8e3b1ebd3d55
http: fix for tiny "HTTP/0.9" response

Deal with tiny "HTTP/0.9" (header-less) responses by checking the
status-line early, even before a full "HTTP/" is received to allow
detecting 0.9 properly.

Test 1266 and 1267 added to verify.

Fixes #2420
Closes #2872
lib/curl_setup.h
lib/http.c
lib/http2.c
lib/sha256.c
lib/urldata.h
tests/FILEFORMAT
tests/data/Makefile.inc
tests/data/test1266 [new file with mode: 0644]
tests/data/test1267 [new file with mode: 0644]
tests/runtests.pl
tests/server/sws.c