comparison src/http/ngx_http_upstream.c @ 2244:f5a9f35e8344

strip charset name quotes
author Igor Sysoev <igor@sysoev.ru>
date Tue, 09 Sep 2008 11:58:45 +0000
parents 274c0f3ea600
children 920be89a3d2d
comparison
equal deleted inserted replaced
2243:2f43be041e98 2244:f5a9f35e8344
2630 2630
2631 p += 8; 2631 p += 8;
2632 2632
2633 r->headers_out.content_type_len = last - h->value.data; 2633 r->headers_out.content_type_len = last - h->value.data;
2634 2634
2635 r->headers_out.charset.len = h->value.data + h->value.len - p; 2635 if (*p == '"') {
2636 p++;
2637 }
2638
2639 last = h->value.data + h->value.len;
2640
2641 if (*(last - 1) == '"') {
2642 last--;
2643 }
2644
2645 r->headers_out.charset.len = last - p;
2636 r->headers_out.charset.data = p; 2646 r->headers_out.charset.data = p;
2637 2647
2638 return NGX_OK; 2648 return NGX_OK;
2639 } 2649 }
2640 2650