From: Martin Kraemer Date: Thu, 30 Aug 2007 16:27:22 +0000 (+0000) Subject: Here too, the limited comparison ignored the trailing NIL character X-Git-Tag: 2.3.0~1506 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0aae30b2114042ee82b3cdefe0e7a27af1de496e;p=thirdparty%2Fapache%2Fhttpd.git Here too, the limited comparison ignored the trailing NIL character git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@571232 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index 44307a89309..ceac0f0368c 100644 --- a/modules/proxy/ajp_header.c +++ b/modules/proxy/ajp_header.c @@ -558,7 +558,7 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg, apr_table_add(r->headers_out, stringname, value); /* Content-type needs an additional handling */ - if (strncasecmp(stringname, "Content-Type", 12) == 0) { + if (strcasecmp(stringname, "Content-Type") == 0) { /* add corresponding filter */ ap_set_content_type(r, apr_pstrdup(r->pool, value)); ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,