mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
fix segfault if upstream sends trailing ";" in "charset="
This commit is contained in:
parent
e47cad4140
commit
77d7f80285
@ -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…
Reference in New Issue
Block a user