X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FGitalist.pm;h=276e386c2ea6ca34abd7e49eedc5de9f3e472cce;hb=1e19ad67eb3b16fa57999f8160d20c98c67b857f;hp=f1825e3aa0a31fdab961669d6cf2686545befef9;hpb=1ff94f744944764df3f541f7caf739180e90e17b;p=catagits%2FGitalist.git diff --git a/lib/Gitalist.pm b/lib/Gitalist.pm index f1825e3..276e386 100644 --- a/lib/Gitalist.pm +++ b/lib/Gitalist.pm @@ -33,7 +33,7 @@ after prepare_path => sub { if ($ctx->req->param('a')) { $ctx->req->uri->path("/legacy$path"); } - + if($path =~ s/[.]json$// && $ctx->req->content_type eq 'application/json') { $ctx->req->uri->path($path); } @@ -51,7 +51,7 @@ sub uri_with { my $uri = $self->request->uri_with(@args); # Wow this awful. $uri =~ s[/fragment\b][]; - return $uri; + return $uri; } 1;