aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-08-01 14:38:09 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-08-01 14:38:09 +0000
commit72a96bfdcb3af2436b9123d8363782f7ad047459 (patch)
tree8883587e6d2e69a3c4ab218da8e2a4d0b7e3e2b8 /src
parent21fd22d089d92f4f1db5ad776545c3c8d389ce1d (diff)
downloadnginx-72a96bfdcb3af2436b9123d8363782f7ad047459.tar.gz
nginx-72a96bfdcb3af2436b9123d8363782f7ad047459.zip
fix r3981 again for case "Accept-Encoding: gzip"
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_core_module.c2
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;
}