You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduction pages do not appear to load the file from disk the way the configuration claims. There's tests that assert this behavior and I've simulated it locally, but when I ran it in production it doesn't seem to work.
The Content-Type header that Chrome receives first is the one that is honored. In our case, the right content type is sent, but it's second because of an existing bug in Athens. Firefox doesn't seem to do this, it takes the last Content-Type header.
Error Message
The content is rendered as application/json and the in-memory template is loaded even when a file is specified.
Describe the bug
The bug is two fold:
Content-Type
header that Chrome receives first is the one that is honored. In our case, the right content type is sent, but it's second because of an existing bug in Athens. Firefox doesn't seem to do this, it takes the last Content-Type header.Error Message
The content is rendered as
application/json
and the in-memory template is loaded even when a file is specified.To Reproduce
Specify a location with https://github.com/gomods/athens/blob/main/config.dev.toml#L174
Launch an image
curl -v
the root endpointExpected behavior
An HTML page is shown, if specified the custom one, and it is rendered as HTMl by the browser.
Environment (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: