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 ni...@apache.org on 2005/01/26 11:52:20 UTC
cvs commit: ws-axis/c/src/server/apache2 Apache2Transport.cpp
nithya 2005/01/26 02:52:20
Modified: c/src/server/apache2 Apache2Transport.cpp
Log:
Changes to setTransportProperty method
Revision Changes Path
1.6 +11 -6 ws-axis/c/src/server/apache2/Apache2Transport.cpp
Index: Apache2Transport.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/server/apache2/Apache2Transport.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Apache2Transport.cpp 24 Jan 2005 20:46:22 -0000 1.5
+++ Apache2Transport.cpp 26 Jan 2005 10:52:20 -0000 1.6
@@ -92,6 +92,9 @@
/* This is apache module and transport is http so the key */
key = "Content-Length";
break;
+ case CONTENT_TYPE:
+ ((request_rec*)m_pContext)->content_type = value;
+ break;
default:;
}
if (key)
@@ -153,13 +156,13 @@
len_read = ap_get_client_block((request_rec*) m_pContext, pBuffer, *piSize);
if (strstr(pBuffer, "Content-Id")) {
-// pAttachmentHelper = new AttachmentHelper();
+ // pAttachmentHelper = new AttachmentHelper();
char *pAttachBuffer = (char*)malloc(1000);
char *mimeBoundary = (char*)malloc(1000);
-// pAttachmentHelper->extract_Attachment(pBuffer);
-// pAttachmentHelper->extract_SOAPMimeHeaders(pBuffer);
-// pAttachmentHelper->extract_Soap(pBuffer);
+ // pAttachmentHelper->extract_Attachment(pBuffer);
+ // pAttachmentHelper->extract_SOAPMimeHeaders(pBuffer);
+ // pAttachmentHelper->extract_Soap(pBuffer);
}
@@ -220,6 +223,8 @@
void Apache2Transport::setTransportProperty(const char* pcKey, const char* pcValue)
{
+ ap_table_set(((request_rec*)m_pContext)->headers_out, pcKey, pcValue);
+ //ap_send_http_header((request_rec*)m_pContext);
}
@@ -303,6 +308,6 @@
char* Apache2Transport::getIncomingSOAPMimeHeaders()
{
- // return pAttachmentHelper->getIncomingSOAPMimeHeaders();
+// return pAttachmentHelper->getIncomingSOAPMimeHeaders();
return NULL;
-}
\ No newline at end of file
+}