Skip to content
This repository was 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

@skierpage

Description

@skierpage
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions