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: remove support for continuation lines in header parsing #14060
Apparently HTTP gave up on some old loose parsing rules at some point and got stricter. The spec now says that HTTP field continuation lines (those starting with a space or tab) like this:
... are illegal now, per https://tools.ietf.org/html/rfc7230#section-3.2.4:
Likewise in that section, space before colon is disallowed now, which we accept: http://play.golang.org/p/hCA3o7q-tb
Actually, on second reading of the spec, we're fine.
It says we must not send it (but we don't, except for perhaps #14048, which we should do for http/1 too), but we're allowed to accept it:
So I think we're fine.
We'll track validating transmitted header fields in #14048 or a related bug linked off there.