Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-08-01 18:38:09 +0400
committerIgor Sysoev <igor@sysoev.ru>2011-08-01 18:38:09 +0400
commit72a96bfdcb3af2436b9123d8363782f7ad047459 (patch)
tree8883587e6d2e69a3c4ab218da8e2a4d0b7e3e2b8
parent21fd22d089d92f4f1db5ad776545c3c8d389ce1d (diff)
fix r3981 again for case "Accept-Encoding: gzip"
-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;
}