]> granicus.if.org Git - curl/commit
HTTP: return larger than 3 digit response codes too
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Oct 2014 15:08:24 +0000 (16:08 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Oct 2014 15:28:10 +0000 (16:28 +0100)
commit95765567d0e9dd01a827e8defd423f27d1d03e95
tree97fb3ddd2b9c6b9ed06e6fbf4f51f72c0fbc024f
parentad88a4bbba39f5f49cddbe91e23265ee8d3cceca
HTTP: return larger than 3 digit response codes too

HTTP 1.1 is clearly specified to only allow three digit response codes,
and libcurl used sscanf("%3d") for that purpose. This made libcurl
support smaller numbers but not larger. It does now, but we will not
make any specific promises nor document this further since it is going
outside of what HTTP is.

Bug: http://curl.haxx.se/bug/view.cgi?id=1441
Reported-by: Balaji
lib/http.c
tests/data/Makefile.inc
tests/data/test1429 [new file with mode: 0644]
tests/data/test1430 [new file with mode: 0644]
tests/data/test1431 [new file with mode: 0644]
tests/data/test1432 [new file with mode: 0644]
tests/data/test1433 [new file with mode: 0644]