diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_core_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index d2b90f16f..f7ebacb40 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2209,7 +2209,7 @@ ngx_http_gzip_accept_encoding(ngx_str_t *ae) return NGX_DECLINED; } - if (p > start && (*(p - 1) == ',' || *(p - 1) == ' ')) { + if (p == start || (*(p - 1) == ',' || *(p - 1) == ' ')) { break; } |