Sebastian, something it is not clear with $self->accepts. 

I've run four requests and checking $c->accepts;

   $c->accepts('html') $c->accepts('json') $c->accepts('', 'html', 'json')  
/awards.json void json json  /awards.html html void html  /awards html void 
html  /img/loading.gif html json void 
As I read in docs I know: "defaults to returning the first extension if no 
preference could be detected". But why I get an empty string after 
$c->accepts('json') if I have html content? But I get "json" if I have GIF 
content?

-- 
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/groups/opt_out.

Reply via email to