mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
strip charset name quotes
This commit is contained in:
parent
44b1a12750
commit
316542508b
@ -2632,7 +2632,17 @@ ngx_http_upstream_copy_content_type(ngx_http_request_t *r, ngx_table_elt_t *h,
|
|||||||
|
|
||||||
r->headers_out.content_type_len = last - h->value.data;
|
r->headers_out.content_type_len = last - h->value.data;
|
||||||
|
|
||||||
r->headers_out.charset.len = h->value.data + h->value.len - p;
|
if (*p == '"') {
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
|
||||||
|
last = h->value.data + h->value.len;
|
||||||
|
|
||||||
|
if (*(last - 1) == '"') {
|
||||||
|
last--;
|
||||||
|
}
|
||||||
|
|
||||||
|
r->headers_out.charset.len = last - p;
|
||||||
r->headers_out.charset.data = p;
|
r->headers_out.charset.data = p;
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user