mirror of
https://github.com/nginx/nginx.git
synced 2025-06-28 02:02:50 +08:00
HTTP/2: prevented creating temp files for requests without body.
The problem was introduced by 52bd8cc17f34.
This commit is contained in:
parent
5d496d467d
commit
27c7ed683b
@ -3552,8 +3552,10 @@ ngx_http_v2_read_request_body(ngx_http_request_t *r,
|
||||
rb->buf = ngx_create_temp_buf(r->pool, (size_t) len);
|
||||
|
||||
} else {
|
||||
/* enforce writing body to file */
|
||||
r->request_body_in_file_only = 1;
|
||||
if (stream->preread) {
|
||||
/* enforce writing preread buffer to file */
|
||||
r->request_body_in_file_only = 1;
|
||||
}
|
||||
|
||||
rb->buf = ngx_calloc_buf(r->pool);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user