axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Closed: (AXISCPP-273) Content-Type http header of the returned http request for http://localhost/axis is text/xml For Apache 1.3.x
Date Fri, 19 Nov 2004 08:45:29 GMT
     [ http://nagoya.apache.org/jira/browse/AXISCPP-273?page=history ]
     
Samisa Abeysinghe closed AXISCPP-273:
-------------------------------------

     Assign To: sanjaya singharage
    Resolution: Fixed

Changes done by Sanjaya to set Content-type to text/html for GET requests for Apache 1.3 module.


RCS file: /home/cvspublic/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	2004/06/14 07:35:46	1.3
+++ mod_axis.cpp	2004/11/18 09:57:30	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)
     {



> Content-Type http header of the returned http request for http://localhost/axis is text/xml
For Apache 1.3.x
> ------------------------------------------------------------------------------------------------------------
>
>          Key: AXISCPP-273
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-273
>      Project: Axis-C++
>         Type: Bug
>   Components: Transport (Server)
>     Versions: 1.3 Final
>  Environment: NA
>     Reporter: Samisa Abeysinghe
>     Assignee: sanjaya singharage
>     Priority: Trivial
>      Fix For: 1.4 Alpha

>
> In Apache 2 module ...
>     req_rec->content_type = (M_POST == req_rec->method_number) ?
>   "text/xml" : "text/html";
> In Apache 1.3 module ...
>     req_rec->content_type = "text/xml";
> so Apache 2 should work correctly and since Chris is working with 
> 1.3.22 he
> will get "text/xml". I checked and this is so with 1.3. I think we 
> simply
> need to replace the line of 1.3 with 2.
> sanjaya.
> ----- Original Message -----
> From: "Samisa Abeysinghe" <samisa_abeysinghe@yahoo.com>
> To: "Apache AXIS C User List" <axis-c-user@ws.apache.org>
> Sent: Thursday, November 18, 2004 11:24 AM
> Subject: Re: 1.3 welcome (/axis) page parse error with expat 1.95.8
> > Well; on Linux Apache 2.0 sends Content-Type: text/html;
> > This cannot be different on Windows.
> >
> > Apparently there are couple of bugs that need to be fixed in the  
> HTML
> sent by Axis engine.
> > (Better create a Jira issue on this)
> >
> > Thanks,
> > Samisa...
> >
> > --- sanjaya singharage <sanjayas@opensource.lk> wrote:
> >
> > > probably the Content-Type http header of the returned http request 
> for
> /axis
> > > has it set to text/xml. That could be why the browser is trying to 
> parse
> it
> > > as xml and not html .
> > >
> > > sanjaya.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message