[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 72013be6034d1f011c115fa5e91940fe0801c4b1

sartak at bestpractical.com sartak at bestpractical.com
Tue Feb 10 15:00:13 EST 2009


The branch, master has been updated
       via  72013be6034d1f011c115fa5e91940fe0801c4b1 (commit)
      from  6d1bccdbbf5ba6243e8ab5368f8ddc31b5d2f0dc (commit)

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

- Log -----------------------------------------------------------------
commit 72013be6034d1f011c115fa5e91940fe0801c4b1
Author: Shawn M Moore <sartak at gmail.com>
Date:   Tue Feb 10 14:59:57 2009 -0500

    Prophet::Server now passes http method as metadata on the path

diff --git a/lib/App/SD/Server/Dispatcher.pm b/lib/App/SD/Server/Dispatcher.pm
index 5568eb0..c9678cf 100644
--- a/lib/App/SD/Server/Dispatcher.pm
+++ b/lib/App/SD/Server/Dispatcher.pm
@@ -51,13 +51,13 @@ on qr'.' => sub {
 };
 
 
-under 'POST' => sub {
+under { method => 'POST' } => sub {
     on qr'^ticket/([\w\d-]+)/edit$' => sub { shift->server->_send_redirect( to => '/ticket/' . $1 ); };
     on qr'^(?!records)$' => sub { shift->server->_send_redirect( to => $1 ); };
 };
 
 
-under 'GET' => sub {
+under { method => 'GET' } => sub {
     on qr'^static/sd/(.*)$' => sub { shift->server->send_static_file($1)};
     on qr'^(milestone|component)/([\w\d-]+)$' => sub {
         my $name = $1;

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



More information about the Bps-public-commit mailing list