Hi all.

I've noticed, that when json is rendered, sometimes it's rendered actually 
twice.

Here's the code I have:
get '/test' => sub {
    my $self =shift;
    $self->render(data => encode_json {'a' => 'b'});
};

So, when I open in browser http://mysite.com/test I see the following in 
debug console:

[Mon Feb 16 15:00:22 2015] [debug] GET "/test"
[Mon Feb 16 15:00:22 2015] [debug] Routing to a callback
[Mon Feb 16 15:00:22 2015] [debug] 200 OK (0.001468s, 681.199/s)
[Mon Feb 16 15:00:23 2015] [debug] GET "/test"
[Mon Feb 16 15:00:23 2015] [debug] Routing to a callback
[Mon Feb 16 15:00:23 2015] [debug] 200 OK (0.000599s, 1669.449/s)

When I render text or html template, pages are rendered only once.

Does somebody know what may be the problem?

-- 
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