Forum: Ruby on Rails RE: RJS Templates?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F01c3ff32fee35d911e81c172a005012?d=identicon&s=25 Tom (Guest)
on 2005-11-19 05:02
(Received via mailing list)
Aha!  Found it!  On my Windows machine, under WEBRick, the Content-type
header is 'text/javascript; charset=UTF-8'.  The prototype code is
looking for exactly 'text/javascript', and fails to detect the returned
javascript.

I don't know who sets the charset part, whether it's Rails or WEBrick,
5b9fe87ec1faa67a4599782930f45ec9?d=identicon&s=25 sstephenson (Guest)
on 2005-11-19 08:00
(Received via mailing list)
Tom,

On 11/18/05, Tom Fakes <Tom@tomandlisa.us> wrote:
> Aha!  Found it!  On my Windows machine, under WEBRick, the Content-type
> header is 'text/javascript; charset=UTF-8'.  The prototype code is
> looking for exactly 'text/javascript', and fails to detect the returned
> javascript.
>
> I don't know who sets the charset part, whether it's Rails or WEBrick,

Good catch. I've pushed Prototype 1.4.0_rc4 in [3091] which should
match the content-type header more liberally.

Sam
This topic is locked and can not be replied to.