Re:Golang's network stack attempts to parse HTTP headers as ...
by IshKebab on Thursday January 21, 2021 @08:00AM
(#25858358)
One of the hazards of text-based protocols.
[ Parent
| on HN ]
Re:Golang's network stack attempts to parse HTTP headers as ...
by userbinator on Thursday January 21, 2021 @09:37AM
(#25859224)
Indeed --- if HTTP was a binary protocol, with headers and their values being defined constant integers, this would definitely not happen. No one would confuse 1 with 2, and implementations would probably be quite a bit more efficient... but the "lamers" really want their pile of leaky abstractions because they can't be bothered using a hex editor. </s>
Nevermind the fact that some parts of HTTP are really just binary written as text, and now even most non-developers know what a 404 is...