I have an application which work on Mojolicious 4.26 but not on Mojolicious
5.62.

To test it we can use the script find here (
https://gist.github.com/563576/1c2cb949d77ad03f1462be1152a744ed8dccb569 )
as server :

#!/usr/bin/env perl
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/mojo/lib";
use Mojolicious::Lite;

get '/test' => sub {
my $self = shift;

my $foo     = $self->param('foo') || '';
my $callback = $self->param('callback') || 'jsonp';

my $json = $self->render(
json => {
'status' => 'OK',
'result' => 'successful'
},
partial => 1);

$self->render(data => "$callback($json)", format => 'js');
} => 'test';
app->start;

-- run
jsonp-service.pl daemon


Calling it with http://127.0.0.1:3000/test/?foo=bar&callback=smth return
the json obgect on Mojolicious 4.26, while on Mojolicious 5.62 return "
smth(1)"


Am I missing something which has changed ?
Thanks
paolo saudin

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to