Klaus Demo nginx / be99a88
Request body: moved request body writing to save filter. Maxim Dounin 7 years ago
1 changed file(s) with 8 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
276276 return rc;
277277 }
278278
279 /* write to file */
280
281 if (ngx_http_write_request_body(r) != NGX_OK) {
282 return NGX_HTTP_INTERNAL_SERVER_ERROR;
283 }
284
285 /* update chains */
286
287 rc = ngx_http_request_body_filter(r, NULL);
288
289 if (rc != NGX_OK) {
290 return rc;
291 }
292
293279 if (rb->busy != NULL) {
294280 return NGX_HTTP_INTERNAL_SERVER_ERROR;
295281 }
10991085 return NGX_HTTP_INTERNAL_SERVER_ERROR;
11001086 }
11011087
1088 if (rb->rest > 0
1089 && rb->buf && rb->buf->last == rb->buf->end)
1090 {
1091 if (ngx_http_write_request_body(r) != NGX_OK) {
1092 return NGX_HTTP_INTERNAL_SERVER_ERROR;
1093 }
1094 }
1095
11021096 return NGX_OK;
11031097 }