if ((this.getHeader('Content-type')
'text/javascript').strip().
match(/(text|application)\/(x-)?(java|ecma)script(;.*)?$/i))
this.evalResponse();
The bug is that the code changed from using if there was no content type, to using 'text/javascript', which will match on the regExp every time.
There is no option to turn this off.
There are times when it is not possible to set the content-type of the response. In my case, I have an client that works either online or offline. When offline, it uses the file system with fixed files, instead of a web server.
Request reverting back to using instead of 'text/javascript'.
Attachments
Change History
Download in other formats:
|