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
This doesn't happen with unit tests, maybe there is a difference when using httptest?
With a real handler I get the response with a text/plain Content-Type. I guess this is because the status is emitted before the Content-Type (ultimately set here).
The text was updated successfully, but these errors were encountered:
I think the ResultWriter needs to write the status code as well. Otherwise we will need to split the functionality into multiple functions or there will be ordering issues. The develop branch has a fix for this.
This doesn't happen with unit tests, maybe there is a difference when using
httptest
?With a real handler I get the response with a
text/plain
Content-Type. I guess this is because the status is emitted before the Content-Type (ultimately set here).The text was updated successfully, but these errors were encountered: