mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 20:53:30 +08:00
fix segfault
This commit is contained in:
parent
7c5c1dccd6
commit
523e09ee1a
@ -2613,6 +2613,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user