Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

flathub returns 200 Status OK for broken URLs instead of 404. #327

Open
skierpage opened this issue Jun 10, 2022 · 0 comments
Open

flathub returns 200 Status OK for broken URLs instead of 404. #327

skierpage opened this issue Jun 10, 2022 · 0 comments

Comments

@skierpage
Copy link

  1. Visit https://flathub.org//garbage/here
  2. Enter curl --head https://flathub.org/garbage/here

Result: you get a jokey

It would be regular 404 page
… except, we didn’t receive a 404 response status!

error page, but the web server returns HTTP/2 200 status OK.

This leads to scripts and crawlers thinking failed requests succeeded, unless they use heuristics to look at the page content.

nginx JavaScript may be inserting the faux 404 text.

@razzeee razzeee transferred this issue from flathub-infra/website Jun 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant