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,
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.