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:
parent
04752f2c8d
commit
59860760c7
1 changed files with 1 additions and 1 deletions
2
app.pl
2
app.pl
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue