]> granicus.if.org Git - curl/commit
Venkat Akella found out that libcurl did not like HTTP responses that simply
authorDaniel Stenberg <daniel@haxx.se>
Sat, 25 Nov 2006 13:32:04 +0000 (13:32 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 25 Nov 2006 13:32:04 +0000 (13:32 +0000)
commitda58d03ff7be9fc5e0219d95ce2f9932e2272473
tree8d2c198822b1642ac20c3cc7b387cd24e1bb4970
parent9ea3831c08fab5b320e381b1552964ff789316c7
Venkat Akella found out that libcurl did not like HTTP responses that simply
responded with a single status line and no headers nor body. Starting now, a
HTTP response on a persistent connection (i.e not set to be closed after the
response has been taken care of) must have Content-Length or chunked
encoding set, or libcurl will simply assume that there is no body.

To my horror I learned that we had no less than 57(!) test cases that did bad
HTTP responses like this, and even the test http server (sws) responded badly
when queried by the test system if it is the test system. So although the
actual fix for the problem was tiny, going through all the newly failing test
cases got really painful and boring.
61 files changed:
CHANGES
RELEASE-NOTES
lib/transfer.c
tests/data/test11
tests/data/test150
tests/data/test153
tests/data/test155
tests/data/test159
tests/data/test163
tests/data/test166
tests/data/test167
tests/data/test168
tests/data/test173
tests/data/test174
tests/data/test175
tests/data/test176
tests/data/test186
tests/data/test187
tests/data/test233
tests/data/test234
tests/data/test239
tests/data/test243
tests/data/test257
tests/data/test26
tests/data/test264
tests/data/test267
tests/data/test27
tests/data/test273
tests/data/test276
tests/data/test277
tests/data/test278
tests/data/test279
tests/data/test28
tests/data/test281
tests/data/test282 [new file with mode: 0644]
tests/data/test43
tests/data/test44
tests/data/test45
tests/data/test515
tests/data/test516
tests/data/test56
tests/data/test59
tests/data/test62
tests/data/test63
tests/data/test64
tests/data/test67
tests/data/test69
tests/data/test71
tests/data/test73
tests/data/test79
tests/data/test80
tests/data/test81
tests/data/test83
tests/data/test84
tests/data/test85
tests/data/test89
tests/data/test9
tests/data/test90
tests/data/test91
tests/data/test95
tests/server/sws.c