comparison src/http/ngx_http_upstream.c @ 2326:805165c6ba2b stable-0.6

r2245 merge: strip charset name quotes
author Igor Sysoev <igor@sysoev.ru>
date Thu, 20 Nov 2008 17:18:12 +0000
parents 54e4d1b6c183
children a60b3fcf25ec
comparison
equal deleted inserted replaced
2325:50be8dd53d5e 2326:805165c6ba2b
2623 2623
2624 p += 8; 2624 p += 8;
2625 2625
2626 r->headers_out.content_type_len = last - h->value.data; 2626 r->headers_out.content_type_len = last - h->value.data;
2627 2627
2628 r->headers_out.charset.len = h->value.data + h->value.len - p; 2628 if (*p == '"') {
2629 p++;
2630 }
2631
2632 last = h->value.data + h->value.len;
2633
2634 if (*(last - 1) == '"') {
2635 last--;
2636 }
2637
2638 r->headers_out.charset.len = last - p;
2629 r->headers_out.charset.data = p; 2639 r->headers_out.charset.data = p;
2630 2640
2631 return NGX_OK; 2641 return NGX_OK;
2632 } 2642 }
2633 2643