You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by se...@apache.org on 2008/03/14 18:19:47 UTC
svn commit: r637169 -
/webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c
Author: senaka
Date: Fri Mar 14 10:19:44 2008
New Revision: 637169
URL: http://svn.apache.org/viewvc?rev=637169&view=rev
Log:
Fixing Issue in Content Type of Failure Response
Modified:
webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c
Modified: webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c?rev=637169&r1=637168&r2=637169&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/server/apache2/apache2_worker.c Fri Mar 14 10:19:44 2008
@@ -317,7 +317,7 @@
{
body_string =
axis2_http_transport_utils_get_services_html(env, conf_ctx);
- request->content_type = "text/xml";
+ request->content_type = "text/html";
}
else if (M_DELETE != request->method_number && wsdl)
{
@@ -334,14 +334,14 @@
{
body_string =
axis2_http_transport_utils_get_not_found(env, conf_ctx);
- request->content_type = "text/xml";
+ request->content_type = "text/html";
request->status = 404;
}
else
{
body_string =
axis2_http_transport_utils_get_services_html(env, conf_ctx);
- request->content_type = "text/xml";
+ request->content_type = "text/html";
request->status = HTTP_INTERNAL_SERVER_ERROR;
}
@@ -376,14 +376,14 @@
{
body_string =
axis2_http_transport_utils_get_not_found(env, conf_ctx);
- request->content_type = "text/xml";
+ request->content_type = "text/html";
request->status = 404;
}
else
{
body_string =
axis2_http_transport_utils_get_services_html(env, conf_ctx);
- request->content_type = "text/xml";
+ request->content_type = "text/html";
request->status = HTTP_INTERNAL_SERVER_ERROR;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org