Skip to content

Instantly share code, notes, and snippets.

@dbolser
Last active December 20, 2015 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbolser/4c7f479916a3e81b790d to your computer and use it in GitHub Desktop.
Save dbolser/4c7f479916a3e81b790d to your computer and use it in GitHub Desktop.
## 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