Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: HTTP/1.1 requests without Host header should be rejected #13624
HTTP/1.1 mandates (both in RFC2616 and RFC7230) that requests lacking a Host header should unconditionally receive a 400 Bad Request response.
Right now Go happily accepts such requests without returning 400: as such it's non-conforming to the RFCs.