-
-
Save dbolser/4c7f479916a3e81b790d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Handle ping | |
get '/solr/collectionX/admin/ping' => sub { | |
my $self = shift; | |
say "PING!"; | |
print Dumper $self->req; | |
my $new_url = | |
msp( $MASTER_SOLR_SERVER ). '/admin/ping'; | |
my $tx = $ua->head( $new_url ); | |
$self->tx->res( $tx->res )->resume; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment