Skip to content

Commit

Permalink
Item12952: include FW version info in a tickle response
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Sep 24, 2014
1 parent fae4d72 commit 7fa4599
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/lib/Foswiki/UI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,11 @@ sub handleRequest {
# this Foswiki. Respond with the serialised dispatcher, and
# finish the request.
if ( $req->header('X-Foswiki-Tickle') ) {
my $data = { SCRIPT_NAME => $ENV{SCRIPT_NAME}, };
my $data = {
SCRIPT_NAME => $ENV{SCRIPT_NAME},
VERSION => $Foswiki::VERSION,
RELEASE => $Foswiki::RELEASE,
};
my $res = new Foswiki::Response();
$res->header( -type => 'application/json', -status => '200' );
my $d = JSON->new->allow_nonref->encode($data);
Expand Down

0 comments on commit 7fa4599

Please sign in to comment.