# HG changeset patch # User Maxim Dounin # Date 1340721623 0 # Node ID 668de9844a027374988fc27c3bf33f2f90b14c2e # Parent ad7b9c54301d822eaa4f9290b8714bfe349a6fe3 Merge of r4645: 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;