1 Reply Latest reply on Dec 20, 2006 12:07 AM by tom.elrod

    HTTP Invoker overwrites Content-Type

    jhalcrow

      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