r1969 merge:

fix segfault
This commit is contained in:
Igor Sysoev 2008-05-04 10:08:36 +00:00
parent e9e15f8a13
commit 7560165df1
1 changed files with 4 additions and 0 deletions

View File

@ -2543,6 +2543,10 @@ ngx_http_upstream_copy_content_type(ngx_http_request_t *r, ngx_table_elt_t *h,
while (*++p == ' ') { /* void */ }
if (*p == '\0') {
return NGX_OK;
}
if (ngx_strncasecmp(p, (u_char *) "charset=", 8) != 0) {
continue;
}