From c5c6e82715d28e05b04b36488b9610ef474aff23 Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Mon, 13 Aug 2012 13:37:15 +0000 Subject: [PATCH] make the CT check in ap_parse_form_data case-insensitive git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1372419 13f79535-47bb-0310-9956-ffa450edef68 --- server/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/util.c b/server/util.c index a8b50479b17..24d3a22ed35 100644 --- a/server/util.c +++ b/server/util.c @@ -2406,7 +2406,7 @@ AP_DECLARE(int) ap_parse_form_data(request_rec *r, ap_filter_t *f, /* sanity check - we only support forms for now */ ct = apr_table_get(r->headers_in, "Content-Type"); - if (!ct || strncmp("application/x-www-form-urlencoded", ct, 33)) { + if (!ct || strncasecmp("application/x-www-form-urlencoded", ct, 33)) { return ap_discard_request_body(r); } -- 2.47.2