1 Reply Latest reply on Dec 20, 2006 12:07 AM by Tom Elrod

    HTTP Invoker overwrites Content-Type

    Jonathan Halcrow Newbie


      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();
       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?

      Jonathan Halcrow