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

Small fixes to the GARM api server #138

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

ionutbalutoiu
Copy link
Contributor

When `w.WriteHeader(...)` is called, the HTTP headers are written in
the HTTP response.

Therefore, calling `w.Header().Add(...)` after `w.WriteHeader(...)`
will not have any effect.

Signed-off-by: Ionut Balutoiu <[email protected]>
The endpoint endpoint `/api/v1/first-run` only works when we
have ending `/`.

This commit fixes this.

Signed-off-by: Ionut Balutoiu <[email protected]>
@gabriel-samfira gabriel-samfira merged commit 0d08808 into cloudbase:main Jul 18, 2023
4 checks passed
@ionutbalutoiu ionutbalutoiu deleted the small-fixes branch July 25, 2023 20:11
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

Successfully merging this pull request may close these issues.

Header Content-Type is not correctly set when receiving 401 Unauthorized response
2 participants