Browse Source

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
svn/tags/lighttpd-1.4.29
Stefan Bühler 11 years ago
parent
commit
74ce062f56
  1. 2
      NEWS
  2. 2
      src/mod_proxy.c

2
NEWS

@ -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)

2
src/mod_proxy.c

@ -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);

Loading…
Cancel
Save