mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 03:21:08 +00:00
fix segfault if upstream sends trailing ";" in "charset="
This commit is contained in:
parent
e47cad4140
commit
77d7f80285
1 changed files with 2 additions and 0 deletions
|
|
@ -2326,6 +2326,8 @@ ngx_http_upstream_copy_content_type(ngx_http_request_t *r, ngx_table_elt_t *h,
|
|||
|
||||
r->headers_out.charset.len = h->value.data + h->value.len - p;
|
||||
r->headers_out.charset.data = p;
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
return NGX_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue