Skip to content

Conversation

@ionutbalutoiu
Copy link

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 <ibalutoiu@cloudbasesolutions.com>
The endpoint endpoint `/api/v1/first-run` only works when we
have ending `/`.

This commit fixes this.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
@gabriel-samfira gabriel-samfira merged commit 0d08808 into cloudbase:main Jul 18, 2023
@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

3 participants