]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Here too, the limited comparison ignored the trailing NIL character
authorMartin Kraemer <martin@apache.org>
Thu, 30 Aug 2007 16:27:22 +0000 (16:27 +0000)
committerMartin Kraemer <martin@apache.org>
Thu, 30 Aug 2007 16:27:22 +0000 (16:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@571232 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/ajp_header.c

index 44307a8930982310b2b5f4edd93f6cc628217375..ceac0f0368c06533387147d178c848c394f34caf 100644 (file)
@@ -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,