Skip to content

Commit

Permalink
Merge pull request ppy#10992 from nanaya/raw-type
Browse files Browse the repository at this point in the history
Fix content type of forum post raw
  • Loading branch information
peppy authored Feb 12, 2024
2 parents e9b555b + 614c2e7 commit 64d540d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Forum/PostsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function raw($id)
$text = sprintf("[quote=\"%s\"]\n%s\n[/quote]\n", $post->userNormalized()->username, $text);
}

return $text;
return response($text)->header('Content-Type', 'text/plain');
}

public function show($id)
Expand Down

0 comments on commit 64d540d

Please sign in to comment.