mirror of
https://github.com/perlbot/perlbuut-pastebin
synced 2025-06-07 22:26:01 -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) {
|
if ($row) {
|
||||||
$c->render(text => $row->{paste});
|
$c->render(text => $row->{paste}, format => "txt");
|
||||||
} else {
|
} else {
|
||||||
# 404
|
# 404
|
||||||
return $c->reply->not_found;
|
return $c->reply->not_found;
|
||||||
|
|
Loading…
Add table
Reference in a new issue