Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 17107 invoked from network); 28 Sep 2008 08:54:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2008 08:54:35 -0000 Received: (qmail 66592 invoked by uid 500); 28 Sep 2008 08:54:33 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 66577 invoked by uid 500); 28 Sep 2008 08:54:33 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 66566 invoked by uid 99); 28 Sep 2008 08:54:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2008 01:54:33 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Sep 2008 08:53:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7551E234C1E2 for ; Sun, 28 Sep 2008 01:53:44 -0700 (PDT) Message-ID: <1488180921.1222592024479.JavaMail.jira@brutus> Date: Sun, 28 Sep 2008 01:53:44 -0700 (PDT) From: "Rajika Kumarasiri (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Commented: (AXIS2C-1267) HTTP headers case sensitive in http_sender.c In-Reply-To: <1831139589.1221743144296.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-1267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635216#action_12635216 ] Rajika Kumarasiri commented on AXIS2C-1267: ------------------------------------------- According to the RFC 2616 HTTP headers are case insensitive, but the HTTP method suppose to be case sensitive. Upon doing a quick search I found that the same thing happens with string searching with strstr, and should be replaced with strcasestr in Linux. > HTTP headers case sensitive in http_sender.c > -------------------------------------------- > > Key: AXIS2C-1267 > URL: https://issues.apache.org/jira/browse/AXIS2C-1267 > Project: Axis2-C > Issue Type: Bug > Components: core/transport > Affects Versions: 1.5.0 > Reporter: Mats Staffansson > Original Estimate: 0.08h > Remaining Estimate: 0.08h > > HTTP headers should be compared case insensitive. > --- src/core/transport/http/sender/http_sender.c 2008-09-18 11:25:39.000000000 +0200 > +++ src/core/transport/http/sender/http_sender.c.patched 2008-09-18 12:02:09.000000000 +0200 > @@ -1471,7 +1471,7 @@ > header, env); > if (name) > { > - if (0 == axutil_strcmp (name, AXIS2_HTTP_HEADER_TRANSFER_ENCODING) > + if (0 == axutil_strcasecmp (name, AXIS2_HTTP_HEADER_TRANSFER_ENCODING) > && 0 == > axutil_strcmp (axis2_http_header_get_value (header, env), > AXIS2_HTTP_HEADER_TRANSFER_ENCODING_CHUNKED)) > @@ -1485,7 +1485,7 @@ > env, transfer_encoding); > > } > - if (0 != axutil_strcmp (name, AXIS2_HTTP_HEADER_CONTENT_TYPE)) > + if (0 != axutil_strcasecmp (name, AXIS2_HTTP_HEADER_CONTENT_TYPE)) > { > axis2_char_t *tmp_charset = NULL; > axis2_char_t *content_type = > [ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org