r2245 merge:

strip charset name quotes
This commit is contained in:
Igor Sysoev 2008-11-20 17:18:12 +00:00
parent b08ad2f405
commit 50f4a8f38f
1 changed files with 11 additions and 1 deletions

View File

@ -2625,7 +2625,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.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;
return NGX_OK;