users@grizzly.java.net

Re: Hidden frame sample does not work with Firefox and Opera

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 25 Sep 2009 10:12:09 -0400

Salut,

OlekG wrote:
> Hello,
>
> Thank you for your answer.
>
> I have already solved the problem by adding the following piece of code :
>
> if( userAgent.indexOf("WebKit") == -1 ) {
> //for ie, firefox and opera
> response.setContentType("");
> } else {
> //for chrome and safari
> response.setContentType("multipart/x-mixed-replace");
> }
>
> see :
>
> http://stackoverflow.com/questions/169258/is-http-streaming-comet-possible-in-safari

Actually I've blogged about an alternative

   * http://is.gd/3Fbkc

Not setting the content type seems dangerous IMO. But I will go ahead
and commit your fix.

Thanks

-- Jeanfrancois



>
> with best regards Olek