[nginx] Request body: c->error on "100 Continue" errors (ticket #1194).

Maxim Dounin mdounin at mdounin.ru
Wed Feb 8 18:29:01 UTC 2017


details:   http://hg.nginx.org/nginx/rev/92e771de7d89
branches:  
changeset: 6903:92e771de7d89
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Wed Feb 08 19:35:31 2017 +0300
description:
Request body: c->error on "100 Continue" errors (ticket #1194).

diffstat:

 src/http/ngx_http_request_body.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -835,6 +835,8 @@ ngx_http_test_expect(ngx_http_request_t 
 
     /* we assume that such small packet should be send successfully */
 
+    r->connection->error = 1;
+
     return NGX_ERROR;
 }
 


More information about the nginx-devel mailing list