aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-08-18 16:34:24 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-08-18 16:34:24 +0000
commit9bc8fc4602fb2b39b6000fed060e185ffcf2571b (patch)
tree3e651bd3195307aa707c29e79ceb5bb94b8ab3f3 /src
parentc4ff39ae2b79a6a54535f3c8abc9f2ccefa4ee99 (diff)
downloadnginx-9bc8fc4602fb2b39b6000fed060e185ffcf2571b.tar.gz
nginx-9bc8fc4602fb2b39b6000fed060e185ffcf2571b.zip
Fixing proxy_set_body and proxy_pass_request_body with SSL.
Flush flag wasn't set in constructed buffer and this prevented any data from being actually sent to upstream due to SSL buffering. Make sure we always set flush in the last buffer we are going to sent. See here for report: http://nginx.org/pipermail/nginx-ru/2011-June/041552.html
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_proxy_module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
index 495b1743d..902cfb8f2 100644
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -1132,12 +1132,11 @@ ngx_http_proxy_create_request(ngx_http_request_t *r)
body = body->next;
}
- b->flush = 1;
-
} else {
u->request_bufs = cl;
}
+ b->flush = 1;
cl->next = NULL;
return NGX_OK;