pastebin icon indicating copy to clipboard operation
pastebin copied to clipboard

Got HTML source instead of 404

Open ReVoLt112 opened this issue 2 years ago • 2 comments

Hi, when i try to access a burned or timed out paste i get the html source instead of a rendered 404 message.

try it with: my Pastebin

ReVoLt112 avatar Mar 10 '23 05:03 ReVoLt112

Seems to have something to do with uri-prefix, when a uri-prefix is set the 404 works.

One addition, if uri-prefix is set it would be nice if the root uri still replies

ReVoLt112 avatar Mar 10 '23 05:03 ReVoLt112

The reason is that contnet-type header is not set, so browser do not know that it is an HTML... I fix it with following apache2 configuration add to the pastebin.

Header setifempty content-type "text/html"

GAS85 avatar Feb 25 '24 16:02 GAS85