httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r571232 - /httpd/httpd/trunk/modules/proxy/ajp_header.c
Date Thu, 30 Aug 2007 16:27:22 GMT
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,



Mime
View raw message