pull/977/merge
Sergey Kandaurov 2 weeks ago committed by GitHub
commit fe1e142fd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/http/ngx_http_request_body.c

@ -581,7 +581,9 @@ ngx_http_write_request_body(ngx_http_request_t *r)
rb->temp_file = tf;
if (rb->bufs == NULL) {
if (rb->bufs == NULL
|| (rb->bufs->buf->pos == NULL && rb->bufs->next == NULL))
{
/* empty body with r->request_body_in_file_only */
if (ngx_create_temp_file(&tf->file, tf->path, tf->pool,

Loading…
Cancel
Save