Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.c @ 1143:c6c42497106c
fix segfault if upstream sends trailing ";" in "charset="
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 23 Mar 2007 11:33:47 +0000 |
parents | 1402dbb554c4 |
children | c843f3df3b85 |
comparison
equal
deleted
inserted
replaced
1142:e479e0b02e5a | 1143:c6c42497106c |
---|---|
2324 | 2324 |
2325 r->headers_out.content_type_len = last - h->value.data; | 2325 r->headers_out.content_type_len = last - h->value.data; |
2326 | 2326 |
2327 r->headers_out.charset.len = h->value.data + h->value.len - p; | 2327 r->headers_out.charset.len = h->value.data + h->value.len - p; |
2328 r->headers_out.charset.data = p; | 2328 r->headers_out.charset.data = p; |
2329 | |
2330 return NGX_OK; | |
2329 } | 2331 } |
2330 | 2332 |
2331 return NGX_OK; | 2333 return NGX_OK; |
2332 } | 2334 } |
2333 | 2335 |