axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asier Murciego (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-2273) SimpleAxisWorker not handling ContentType header
Date Thu, 27 Oct 2005 07:36:59 GMT
SimpleAxisWorker not handling ContentType header
------------------------------------------------

         Key: AXIS-2273
         URL: http://issues.apache.org/jira/browse/AXIS-2273
     Project: Apache Axis
        Type: Bug
    Versions: 1.3    
 Environment: All, bug in source code org.apache.axis.SimpleAxisWorker.java
    Reporter: Asier Murciego


The line that parses the ContentType header uses the contentLocation variable when assigning
values inside parseHeaders(...) function:

} else if (endHeaderIndex == typeLen && matches(buf, typeHeader)) {
    while (++i < n && (buf[i] != '\r') && (buf[i] != '\n')) {
        if (buf[i] == ' ') continue;
        contentType.append((char) (buf[i] & 0x7f));
     }
     headers.addHeader(HTTPConstants.HEADER_CONTENT_TYPE, contentLocation.toString()); <---
ERROR !!!!
}

it should be:
     headers.addHeader(HTTPConstants.HEADER_CONTENT_TYPE, contentType.toString());

It's a cut'n'paste issue.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message