[Jifty-commit] r7111 - in jifty/trunk: lib/Jifty/Plugin/REST

Jifty commits jifty-commit at lists.jifty.org
Tue May 26 15:18:39 EDT 2009


Author: jesse
Date: Tue May 26 15:18:39 2009
New Revision: 7111

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm

Log:
 r63682 at 17h:  jesse | 2009-05-26 15:18:36 -0400
 Support .html to mean "yes, I want HTML, damnit"


Modified: jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin/REST/Dispatcher.pm	Tue May 26 15:18:39 2009
@@ -14,7 +14,7 @@
 use Data::Dumper ();
 use XML::Simple;
 
-before qr{^ (/=/ .*) \. (js|json|yml|yaml|perl|pl|xml) $}x => run {
+before qr{^ (/=/ .*) \. (js|json|yml|yaml|perl|pl|xml|html) $}x => run {
     $ENV{HTTP_ACCEPT} = $2;
     dispatch $1;
 };
@@ -250,6 +250,8 @@
             freezer      => \&render_as_xml,
         };
     }
+    # if we ever have a non-html fallback case, we should be checking for an
+    # $accept of HTML here
     else {
         my $freezer;
 


More information about the Jifty-commit mailing list