axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayachan...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/transport/http CommonsHTTPSender.java
Date Fri, 10 Jun 2005 06:30:44 GMT
jayachandra    2005/06/09 23:30:44

  Modified:    java/src/org/apache/axis/transport/http
                        CommonsHTTPSender.java
  Log:
  Fix for jira issue 2034
  
  Revision  Changes    Path
  1.34      +7 -0      ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java
  
  Index: CommonsHTTPSender.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/CommonsHTTPSender.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- CommonsHTTPSender.java	6 Jun 2005 22:03:39 -0000	1.33
  +++ CommonsHTTPSender.java	10 Jun 2005 06:30:44 -0000	1.34
  @@ -477,6 +477,13 @@
           if (mimeHeaders != null) {
               for (Iterator i = mimeHeaders.getAllHeaders(); i.hasNext(); ) {
                   MimeHeader mimeHeader = (MimeHeader) i.next();
  +                //HEADER_CONTENT_TYPE and HEADER_SOAP_ACTION are already set.
  +                //Let's not duplicate them.
  +                String headerName = mimeHeader.getName();
  +                if (headerName.equals(HTTPConstants.HEADER_CONTENT_TYPE)
  +                        || headerName.equals(HTTPConstants.HEADER_SOAP_ACTION)) {
  +                        continue;
  +                }
                   method.addRequestHeader(mimeHeader.getName(), 
                                           mimeHeader.getValue());
               }
  
  
  

Mime
View raw message