Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: allow server handlers to omit Content-Type #8992
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.