Closed GoogleCodeExporter closed 8 years ago
r94
Original comment by bob.ippo...@gmail.com
on 16 Feb 2009 at 7:31
r94 changes the logic to only include a "Content-Length: 0" for status codes
200-299.
I think this doesn't work, as it (for example) causes empty 301 redirects to
stall while the client waits for chunks or
the connection to close. Here's an example with curl and CouchDB:
-------------------------------------------------------------------------------
curl -vi http://localhost:5984/testing/_design%2Fpython
* About to connect() to localhost port 5984 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 5984 (#0)
> GET /testing/_design%2Fpython HTTP/1.1
> User-Agent: curl/7.19.2 (i386-apple-darwin9.6.0) libcurl/7.19.2 zlib/1.2.3
> Host: localhost:5984
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Server: CouchDB/0.9.0a747380 (Erlang OTP/R12B)
Server: CouchDB/0.9.0a747380 (Erlang OTP/R12B)
< Location: http://localhost:5984/testing/_design/python
Location: http://localhost:5984/testing/_design/python
< Date: Tue, 24 Feb 2009 21:04:50 GMT
Date: Tue, 24 Feb 2009 21:04:50 GMT
* no chunk, no close, no size. Assume close to signal end
[… time passes …]
<
* Closing connection #0
-------------------------------------------------------------------------------
I think we should special-case only those status codes that specifically
prohibit a content-length header. Otherwise,
the old behavior had the advantage of not actually causing any problems in the
real world AFAIK :P
Original comment by cmlenz
on 24 Feb 2009 at 9:17
I'd reopen this issue but lack permissions. Or should I file a new issue for
this?
Original comment by cmlenz
on 24 Feb 2009 at 9:18
Reverted in r97, marking as invalid unless a patch is provided that doesn't
break anything
Original comment by bob.ippo...@gmail.com
on 24 Feb 2009 at 9:20
Original issue reported on code.google.com by
justin.s...@gmail.com
on 2 Feb 2009 at 3:00