Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got HTML source instead of 404 #45

Open
ReVoLt112 opened this issue Mar 10, 2023 · 2 comments
Open

Got HTML source instead of 404 #45

ReVoLt112 opened this issue Mar 10, 2023 · 2 comments

Comments

@ReVoLt112
Copy link

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
Copy link
Author

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

@GAS85
Copy link

GAS85 commented Feb 25, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants