mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 11:52:00 +00:00
fix multipart ranges trailing
This commit is contained in:
parent
b09c269386
commit
5b1cf0d91f
1 changed files with 2 additions and 1 deletions
|
|
@ -636,7 +636,8 @@ ngx_http_range_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
|
|||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
b->last = ngx_cpymem(b->pos, ctx->boundary_header.data, 4 + 10);
|
||||
b->last = ngx_cpymem(b->pos, ctx->boundary_header.data,
|
||||
sizeof(CRLF "--") - 1 + NGX_ATOMIC_T_LEN);
|
||||
*b->last++ = '-'; *b->last++ = '-';
|
||||
*b->last++ = CR; *b->last++ = LF;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue