Skip to content

Fix HTTP response writing order.#27

Merged
leelynne merged 1 commit into
remitly-oss:mainfrom
getvictor:patch-1
Jul 28, 2025
Merged

Fix HTTP response writing order.#27
leelynne merged 1 commit into
remitly-oss:mainfrom
getvictor:patch-1

Conversation

@getvictor

Copy link
Copy Markdown
Contributor

In the original code, calling Write first implicitly calls WriteHeader(http.StatusOK) if WriteHeader hasn’t been called yet. So the HTTP status will always end up being 200 OK

In the original code, calling `Write` first implicitly calls `WriteHeader(http.StatusOK)` if `WriteHeader` hasn’t been called yet. So the HTTP status will always end up being `200 OK`
@leelynne
leelynne merged commit 06374ef into remitly-oss:main Jul 28, 2025
1 check passed
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.

2 participants