when ever we have content-length we have to forward it.

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@683 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.6
Jan Kneschke 17 years ago
parent 603d6ace1d
commit d0c12ea533
  1. 3
      src/mod_proxy.c

@ -439,8 +439,7 @@ static int proxy_create_env(server *srv, handler_ctx *hctx) {
/* body */
if (con->request.http_method == HTTP_METHOD_POST &&
con->request.content_length) {
if (con->request.content_length) {
/* the buffer-string functions add an extra \0 at the end the memory-function don't */
hctx->write_buffer->used--;
buffer_append_memory(hctx->write_buffer, con->request.content->ptr, con->request.content_length);

Loading…
Cancel
Save