You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Asier Murciego (JIRA)" <ax...@ws.apache.org> on 2005/10/27 09:36:59 UTC

[jira] Created: (AXIS-2273) SimpleAxisWorker not handling ContentType header

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