axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/src/engine/client Call.cpp
Date Wed, 08 Sep 2004 13:25:21 GMT
samisa      2004/09/08 06:25:21

  Modified:    c/src/transport/axis HttpTransport.cpp
               c/src/engine/client Call.cpp
  Log:
  Fixed Jira AXISCPP-131.
  Now no quotes are added for HTTP headers except for SOAPAction
  
  Revision  Changes    Path
  1.44      +2 -2      ws-axis/c/src/transport/axis/HttpTransport.cpp
  
  Index: HttpTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis/HttpTransport.cpp,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- HttpTransport.cpp	7 Sep 2004 13:52:30 -0000	1.43
  +++ HttpTransport.cpp	8 Sep 2004 13:25:21 -0000	1.44
  @@ -451,9 +451,9 @@
   	else
   	{
   	    m_OutHttpHeaders += m_AdditionalHeader[i].first;
  -	    m_OutHttpHeaders += ": \"";
  +	    m_OutHttpHeaders += ": ";
   	    m_OutHttpHeaders += m_AdditionalHeader[i].second;
  -	    m_OutHttpHeaders += "\"\r\n";
  +	    m_OutHttpHeaders += "\r\n";
   	}
       }
   
  
  
  
  1.58      +10 -1     ws-axis/c/src/engine/client/Call.cpp
  
  Index: Call.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/engine/client/Call.cpp,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- Call.cpp	7 Sep 2004 13:51:24 -0000	1.57
  +++ Call.cpp	8 Sep 2004 13:25:21 -0000	1.58
  @@ -234,7 +234,16 @@
   int Call::setTransportProperty (AXIS_TRANSPORT_INFORMATION_TYPE type,
       const char* value)
   {
  -    m_pTransport->setTransportProperty(type, value);
  +    // Samisa - if SOAPAction is being set add extra "" to value
  +    if (type == SOAPACTION_HEADER)
  +    {
  +        char* tempvalue = new char[strlen(value) + 3];
  +        sprintf( tempvalue, "\"%s\"", value);
  +        m_pTransport->setTransportProperty(type, tempvalue);
  +        delete [] tempvalue;
  +    }
  +    else
  +        m_pTransport->setTransportProperty(type, value);
       return AXIS_SUCCESS;
   }
   
  
  
  

Mime
View raw message