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

Comments

Projects
None yet
3 participants
@bradfitz
Copy link
Member

commented Oct 24, 2014

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

@bradfitz bradfitz removed the release-go1.5 label Dec 16, 2014

@rsc rsc removed accepted labels Apr 14, 2015

@gopherbot

This comment has been minimized.

Copy link

commented Apr 28, 2015

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

@bradfitz bradfitz closed this in 5ed44e9 Apr 28, 2015

@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.
You can’t perform that action at this time.