mirror of
https://github.com/nginx/nginx.git
synced 2025-07-31 18:46:15 +08:00
r1969 merge:
fix segfault
This commit is contained in:
parent
5256bf1915
commit
24488a2a5a
@ -2543,6 +2543,10 @@ ngx_http_upstream_copy_content_type(ngx_http_request_t *r, ngx_table_elt_t *h,
|
|||||||
|
|
||||||
while (*++p == ' ') { /* void */ }
|
while (*++p == ' ') { /* void */ }
|
||||||
|
|
||||||
|
if (*p == '\0') {
|
||||||
|
return NGX_OK;
|
||||||
|
}
|
||||||
|
|
||||||
if (ngx_strncasecmp(p, (u_char *) "charset=", 8) != 0) {
|
if (ngx_strncasecmp(p, (u_char *) "charset=", 8) != 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user