Mercurial > hg > ngx_http_catch_body_filter_module
comparison ngx_http_catch_body_filter_module.c @ 2:04788ce8dae7
Close connection on errors.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 09 Feb 2015 16:31:47 +0300 |
parents | 5dcad7ad8eda |
children |
comparison
equal
deleted
inserted
replaced
1:17c333645ebb | 2:04788ce8dae7 |
---|---|
92 "catch body in:%02Xd:%c", *p, *p); | 92 "catch body in:%02Xd:%c", *p, *p); |
93 | 93 |
94 if (*p == 'X') { | 94 if (*p == 'X') { |
95 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 95 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
96 "catch body: found"); | 96 "catch body: found"); |
97 | |
98 /* | |
99 * As we return NGX_HTTP_FORBIDDEN, the r->keepalive flag | |
100 * won't be reset by ngx_http_special_response_handler(). | |
101 * Make sure to reset it to prevent processing of unread | |
102 * parts of the request body. | |
103 */ | |
104 | |
105 r->keepalive = 0; | |
106 | |
97 return NGX_HTTP_FORBIDDEN; | 107 return NGX_HTTP_FORBIDDEN; |
98 } | 108 } |
99 } | 109 } |
100 } | 110 } |
101 | 111 |