Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http/httptest: ResponseRecorder accepts post-write headers #14531

Closed
rolandshoemaker opened this issue Feb 26, 2016 · 3 comments
Closed

net/http/httptest: ResponseRecorder accepts post-write headers #14531

rolandshoemaker opened this issue Feb 26, 2016 · 3 comments

Comments

@rolandshoemaker
Copy link
Member

  1. What version of Go are you using (go version)?
    1.6
  2. What operating system and processor architecture are you using (go env)?
    Ubuntu 15.10 amd64
  3. What did you do?
    Add header after calling WriteHeader or Write on a httptest.ResponseRecorder
  4. What did you expect to see?
    Header not set unless Trailer has been set
  5. What did you see instead?
    Header is set
@gopherbot
Copy link

CL https://golang.org/cl/20047 mentions this issue.

@cmarcelo
Copy link
Contributor

Related to #8857

@cmarcelo
Copy link
Contributor

cmarcelo commented Mar 7, 2016

@bradfitz

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants