From a272b2da28063b13657a985d69366937953abd6b Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Wed, 23 May 2012 10:36:12 +0000 Subject: [PATCH] Fixed warning during nginx.xs compilation. --- src/http/modules/perl/nginx.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index ecd11ffbc..ed9743911 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -476,7 +476,7 @@ header_out(r, key, value) } if (header->key.len == sizeof("Content-Encoding") - 1 - && ngx_strncasecmp(header->key.data, "Content-Encoding", + && ngx_strncasecmp(header->key.data, (u_char *) "Content-Encoding", sizeof("Content-Encoding") - 1) == 0) { r->headers_out.content_encoding = header;