Fix mod_proxy waiting for response even if content-length is 0 (fixes #2259)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2770 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2010-09-17 16:43:07 +00:00
parent 8d769fd0e2
commit 74ce062f56
2 changed files with 2 additions and 2 deletions

2
NEWS
View File

@ -4,7 +4,7 @@ NEWS
====
- 1.4.29 -
*
* Fix mod_proxy waiting for response even if content-length is 0 (fixes #2259)
- 1.4.28 - 2010-08-22
* Rename fdevent_event_add to _set to reflect what the function does. Fix some handlers. (fixes #2249)

View File

@ -724,9 +724,9 @@ static int proxy_demux_response(server *srv, handler_ctx *hctx) {
con->file_started = 1;
if (blen) {
http_chunk_append_mem(srv, con, c + 4, blen + 1);
joblist_append(srv, con);
}
hctx->response->used = 0;
joblist_append(srv, con);
}
} else {
http_chunk_append_mem(srv, con, hctx->response->ptr, hctx->response->used);