1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut-pastebin synced 2025-06-07 14:17:26 -04:00

Send correct content type for raw urls

This commit is contained in:
Ryan Voots 2017-04-23 13:38:57 -04:00
parent 04752f2c8d
commit 59860760c7

2
app.pl
View file

@ -138,7 +138,7 @@ get '/raw/:pasteid' => sub {
if ($row) {
$c->render(text => $row->{paste});
$c->render(text => $row->{paste}, format => "txt");
} else {
# 404
return $c->reply->not_found;