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
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]