Opera 10.10 (Currently the latest stable version for 64bit-Linux) does
not send Accept:application/json
This means that this patch will not work.
Content-Type:application/x-javascript will still be sent and things will
still be broken in Opera.
The same thing happens with Opera 10.53b1 (The latest unstable version
for 64bit-Linux)
If older versions of Opera really require it then maybe do a version
check before sending "Content-Type:application/x-javascript" ?
On Thu Feb 18 02:38:22 2010, NUCLON wrote:
Show quoted text> new version of Opera doesn't like "application/x-javascript" MIME type.
> It causes encoding problems during Ajax requests.
>
> Here is the patch to fix it:
>
> lib/Catalyst/View/JSON.pm
> 99c99
> < if (($c->req->user_agent || '') =~ /Opera/) {
> ---
> > if (($c->req->user_agent || '') =~ /Opera/ &&
> ($c->req->header('Accept') || '') !~ /application\/json/) {