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
From `net/http`:
Changing the header map after a call to WriteHeader (or Write)
has no effect unless the modified headers are trailers.
To send the `content-type`, need to set before calling `WriteHeader`.
Fixesgo-kit#537
From `net/http`:
Changing the header map after a call to WriteHeader (or Write)
has no effect unless the modified headers are trailers.
To send the `content-type`, need to set before calling `WriteHeader`.
Fixesgo-kit#537
In shipping example: https://github.com/go-kit/kit/blame/master/examples/shipping/booking/transport.go#L184
encodeError
may write header before setting thecontent-type
header. From go net/http's doc:Seems like the
content-type
header should set before the error switch.The text was updated successfully, but these errors were encountered: