[Bps-public-commit] r16772 - Prophet/trunk/lib/Prophet
jesse at bestpractical.com
jesse at bestpractical.com
Sat Nov 8 22:48:52 EST 2008
Author: jesse
Date: Sat Nov 8 22:48:52 2008
New Revision: 16772
Modified:
Prophet/trunk/lib/Prophet/Server.pm
Log:
* The standalone server replica exporter wouldn't behave before
Modified: Prophet/trunk/lib/Prophet/Server.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Server.pm (original)
+++ Prophet/trunk/lib/Prophet/Server.pm Sat Nov 8 22:48:52 2008
@@ -61,15 +61,14 @@
my ($cgi) = validate_pos( @_, { isa => 'CGI' } );
my $p = $cgi->path_info;
- if ($p =~ qr|^/+replica|) {
-
- $self->_handle_request_get_replica($cgi);
- }
- if ($p =~ m|^/+records|) {
- $self->_handle_request_get_rest($cgi);
+ if ( $p =~ qr|^/+replica| ) {
+ $self->_handle_request_get_replica($cgi);
+ }
+ elsif ( $p =~ m|^/+records| ) {
+ $self->_handle_request_get_rest($cgi);
+ } else {
+ $self->_handle_request_get_template($cgi);
}
-
- $self->_handle_request_get_template($cgi);
}
sub _handle_request_get_template {
More information about the Bps-public-commit
mailing list