servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r712617 - /servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/src/main/java/org/apache/servicemix/cxf/transport/http_osgi/OsgiServlet.java
Date Mon, 10 Nov 2008 07:00:22 GMT
Author: ffang
Date: Sun Nov  9 23:00:22 2008
New Revision: 712617

URL: http://svn.apache.org/viewvc?rev=712617&view=rev
Log:
[SMX4-151]cxf-transport-osgi doesn't forward the 'Accept' HTTP header to CXF

Modified:
    servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/src/main/java/org/apache/servicemix/cxf/transport/http_osgi/OsgiServlet.java

Modified: servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/src/main/java/org/apache/servicemix/cxf/transport/http_osgi/OsgiServlet.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/src/main/java/org/apache/servicemix/cxf/transport/http_osgi/OsgiServlet.java?rev=712617&r1=712616&r2=712617&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/src/main/java/org/apache/servicemix/cxf/transport/http_osgi/OsgiServlet.java
(original)
+++ servicemix/smx4/features/trunk/cxf/cxf-transport-osgi/src/main/java/org/apache/servicemix/cxf/transport/http_osgi/OsgiServlet.java
Sun Nov  9 23:00:22 2008
@@ -253,6 +253,7 @@
             inMessage.put(Message.PATH_INFO, request.getPathInfo());
             inMessage.put(Message.QUERY_STRING, request.getQueryString());
             inMessage.put(Message.CONTENT_TYPE, request.getContentType());
+            inMessage.put(Message.ACCEPT_CONTENT_TYPE, request.getHeader("Accept"));
             inMessage.put(Message.BASE_PATH, d.getAddress().getAddress().getValue());
             inMessage.put(SecurityContext.class, new SecurityContext() {
                 public Principal getUserPrincipal() {



Mime
View raw message