You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2007/08/30 18:27:22 UTC

svn commit: r571232 - /httpd/httpd/trunk/modules/proxy/ajp_header.c

Author: martin
Date: Thu Aug 30 09:27:22 2007
New Revision: 571232

URL: http://svn.apache.org/viewvc?rev=571232&view=rev
Log:
Here too, the limited comparison ignored the trailing NIL character

Modified:
    httpd/httpd/trunk/modules/proxy/ajp_header.c

Modified: httpd/httpd/trunk/modules/proxy/ajp_header.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/ajp_header.c?rev=571232&r1=571231&r2=571232&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/ajp_header.c (original)
+++ httpd/httpd/trunk/modules/proxy/ajp_header.c Thu Aug 30 09:27:22 2007
@@ -558,7 +558,7 @@
         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,