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 sa...@apache.org on 2004/11/18 10:57:30 UTC
cvs commit: ws-axis/c/src/server/apache mod_axis.cpp
sanjaya 2004/11/18 01:57:30
Modified: c/src/server/apache mod_axis.cpp
Log:
changes to set Content-type to text/html for GET requests for Apache 1.3
module
Revision Changes Path
1.4 +5 -1 ws-axis/c/src/server/apache/mod_axis.cpp
Index: mod_axis.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/server/apache/mod_axis.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mod_axis.cpp 14 Jun 2004 07:35:46 -0000 1.3
+++ mod_axis.cpp 18 Nov 2004 09:57:30 -0000 1.4
@@ -37,7 +37,11 @@
/* for SOAP 1.2 this this should be "application/soap+xml" but keep this for
* the moment. */
- req_rec->content_type = "text/xml";
+ //req_rec->content_type = "text/xml";
+
+ req_rec->content_type = (M_POST == req_rec->method_number) ?
+ "text/xml" : "text/html";
+
/* Set up the read policy from the client.*/
if ((rc = ap_setup_client_block(req_rec, REQUEST_CHUNKED_ERROR)) != OK)
{