From 0aae30b2114042ee82b3cdefe0e7a27af1de496e Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Thu, 30 Aug 2007 16:27:22 +0000 Subject: [PATCH] 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 --- modules/proxy/ajp_header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index 44307a8930..ceac0f0368 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, -- 2.50.1