[jboss-user] [Remoting] - HTTP Invoker overwrites Content-Type

jhalcrow do-not-reply at jboss.com
Tue Dec 12 16:33:31 EST 2006


Hi

I've run into a problem trying to use the http invoker with remoting 2.0.0 GA.  It seems that after invoke() returns, the value for the response header "Content-Type" is always being replaced with "text/html".  I have been attempting to set it as follows:


  | public Object invoke(InvocationRequest req)
  | {
  |     Map response = req.getReturnPayload();
  |     response.put("Content-Type","text/css");
  |     return someCSSasAString;
  | }
  | 

I've checked setting other headers and that works fine, its just Content-Type that gets replaced.  Is there some other way that I can set this?

Thanks!
Jonathan Halcrow

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993178#3993178

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993178



More information about the jboss-user mailing list