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: allow server handlers to omit Content-Type #8992

Closed
bradfitz opened this issue Oct 24, 2014 · 1 comment
Closed

net/http: allow server handlers to omit Content-Type #8992

bradfitz opened this issue Oct 24, 2014 · 1 comment
Milestone

Comments

@bradfitz
Copy link
Contributor

Complaint for proxy authors: there's no way for a Go HTTP Handler to return an HTTP
response without a Content-Type response header set.

We always auto-sniff one if missing.

And if blank, we send "Content-Type: \r\n" in the response, instead of
omitting the header. We should probably omit it in that case, like we do for the Date
header.
@bradfitz bradfitz modified the milestone: Go1.5 Dec 16, 2014
@rsc rsc removed accepted labels Apr 14, 2015
@gopherbot
Copy link

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

@golang golang locked and limited conversation to collaborators Jun 25, 2016
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