diff 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
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -2326,6 +2326,8 @@ ngx_http_upstream_copy_content_type(ngx_
 
         r->headers_out.charset.len = h->value.data + h->value.len - p;
         r->headers_out.charset.data = p;
+
+        return NGX_OK;
     }
 
     return NGX_OK;