# HG changeset patch # User Maxim Dounin # Date 1337769372 0 # Node ID 95763fce86a894ecfbcaceff5bdc6f3a60598218 # Parent bc5f881323b8ddc3fa8ad876388aee943d9c4ae6 Fixed warning during nginx.xs compilation. diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs --- 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;