GitLab Pages default 404 response sends incorrect content-type header
Description of the problem
The GitLab Pages (https://pages.gitlab.io/) default 404 responses are sent with an incorrect Content-Type header. The expected header is text/html
but instead text/plain
is being sent. This causes the responses to show the HTML source of the default 404 page instead of rendering it within the browser.
Which Group/Project (with full path) is experiencing the issue?
An example of this can be found at https://wrseward.gitlab.io/ or can be seen here. This appears to also occur for other users who have at least one project using GitLab Pages (e.g. https://doctorj.gitlab.io/)
Describe what you were doing right before the issue occurred.
To reproduce follow these steps:
- Create a new account: username
- Create a new repository and activate GitLab Pages according to instructions at https://pages.gitlab.io/
- Do not customize the url so that https://username.gitlab.io is not used.
- Visit https://username.gitlab.io