[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. 88b883d14c250b9081679f160fcf88ef88d49ea0

jesse jesse at bestpractical.com
Tue Feb 10 14:25:47 EST 2009


The branch, master has been updated
       via  88b883d14c250b9081679f160fcf88ef88d49ea0 (commit)
      from  28b15c7f1004f1cd4ebcc3047eddf3af556027d8 (commit)

Summary of changes:
 lib/Prophet/Server/Dispatcher.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 88b883d14c250b9081679f160fcf88ef88d49ea0
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Feb 10 14:25:27 2009 -0500

    Makel sure we don't pass in 'empty string' as a template when we mean '/'

diff --git a/lib/Prophet/Server/Dispatcher.pm b/lib/Prophet/Server/Dispatcher.pm
index e405c05..9ebc8d1 100644
--- a/lib/Prophet/Server/Dispatcher.pm
+++ b/lib/Prophet/Server/Dispatcher.pm
@@ -34,7 +34,7 @@ under 'GET' => sub {
     };
 };
 
-on qr'^(?:GET|POST|PUT|DELETE|PATCH)/(.*)$' => sub { shift->server->show_template($1) || next_rule; };
+on qr'^(?:GET|POST|PUT|DELETE|PATCH)(/.*)$' => sub { shift->server->show_template($1) || next_rule; };
 
 no Any::Moose;
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list