aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-02-14 18:51:19 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-02-14 18:51:19 +0000
commit722231f40788d1243bf302227ed7b6fdfeaea492 (patch)
treef408767af10da88546a8d2b518601aef67ffdfb0 /src/http/ngx_http_request.c
parent0ddd9d6e5ebe8cf3fddaf5f017992f0740dd7996 (diff)
downloadnginx-722231f40788d1243bf302227ed7b6fdfeaea492.tar.gz
nginx-722231f40788d1243bf302227ed7b6fdfeaea492.zip
ngx_strcasecmp()/ngx_strncasecmp()
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index d37fead3a..b366f79dd 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1285,14 +1285,16 @@ ngx_http_process_request_header(ngx_http_request_t *r)
if (r->headers_in.connection) {
if (r->headers_in.connection->value.len == 5
- && ngx_strcasecmp(r->headers_in.connection->value.data, "close")
+ && ngx_strcasecmp(r->headers_in.connection->value.data,
+ (u_char *) "close")
== 0)
{
r->headers_in.connection_type = NGX_HTTP_CONNECTION_CLOSE;
} else if (r->headers_in.connection->value.len == 10
&& ngx_strcasecmp(r->headers_in.connection->value.data,
- "keep-alive") == 0)
+ (u_char *) "keep-alive")
+ == 0)
{
r->headers_in.connection_type = NGX_HTTP_CONNECTION_KEEP_ALIVE;