axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r596210 - in /webservices/axis2/trunk/c: include/axis2_http_transport.h src/core/transport/http/common/http_worker.c
Date Mon, 19 Nov 2007 06:38:02 GMT
Author: dinesh
Date: Sun Nov 18 22:38:01 2007
New Revision: 596210

URL: http://svn.apache.org/viewvc?rev=596210&view=rev
Log:
fix for axis2c-754

Modified:
    webservices/axis2/trunk/c/include/axis2_http_transport.h
    webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c

Modified: webservices/axis2/trunk/c/include/axis2_http_transport.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_transport.h?rev=596210&r1=596209&r2=596210&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_transport.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_transport.h Sun Nov 18 22:38:01 2007
@@ -296,6 +296,11 @@
 #define AXIS2_HTTP_HEADER_ACCEPT_TEXT_HTML "text/html"
 
     /**
+     * HEADER APPLICATION_XML
+     */
+#define AXIS2_HTTP_HEADER_APPLICATION_XML "application/xml"
+
+    /**
      * HEADER_ACCEPT_TEXT_XML
      */
 #define AXIS2_HTTP_HEADER_ACCEPT_TEXT_XML "text/xml"

Modified: webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c?rev=596210&r1=596209&r2=596210&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c Sun Nov 18 22:38:01
2007
@@ -281,11 +281,21 @@
                     axis2_http_transport_utils_get_services_static_wsdl(env,
                                                                         conf_ctx,
                                                                         url_external_form);
+                cont_type = axis2_http_header_create(env,
+                                                     AXIS2_HTTP_HEADER_CONTENT_TYPE,
+                                                     AXIS2_HTTP_HEADER_APPLICATION_XML);
+                axis2_http_simple_response_set_header(response, env, cont_type);
+
             }
             else
             {
                 body_string = axis2_http_transport_utils_get_services_html(env,
                                                                            conf_ctx);
+                cont_type = axis2_http_header_create(env,
+                                                     AXIS2_HTTP_HEADER_CONTENT_TYPE,
+                                                     AXIS2_HTTP_HEADER_ACCEPT_TEXT_HTML);
+                axis2_http_simple_response_set_header(response, env, cont_type);
+
             }
 
             if (body_string)
@@ -298,10 +308,6 @@
                                                     AXIS2_HTTP_HEADER_CONTENT_LENGTH,
                                                     str_len);
                 axis2_http_simple_response_set_header(response, env, cont_len);
-                cont_type = axis2_http_header_create(env,
-                                                     AXIS2_HTTP_HEADER_CONTENT_TYPE,
-                                                     AXIS2_HTTP_HEADER_APPLICATION_XML);
-                axis2_http_simple_response_set_header(response, env, cont_type);
             }
             axis2_http_worker_set_response_headers(http_worker, env, svr_conn,
                                                    simple_request, response, 0);



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message