Skip to content

Call WriteHeader after setting other header(s) in the example#442

Merged
elithrar merged 1 commit intogorilla:masterfrom
timucingelici:master
Jan 25, 2019
Merged

Call WriteHeader after setting other header(s) in the example#442
elithrar merged 1 commit intogorilla:masterfrom
timucingelici:master

Conversation

@timucingelici
Copy link
Contributor

From the docs: Changing the header map after a call to WriteHeader (or
Write) has no effect unless the modified headers are
trailers.

From the docs: Changing the header map after a call to WriteHeader (or
Write) has no effect unless the modified headers are
trailers.
@elithrar
Copy link
Contributor

Good catch, thanks!

@elithrar elithrar merged commit 797e653 into gorilla:master Jan 25, 2019
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