News for hackers. Stuff that matters.
Re:Golang's network stack attempts to parse HTTP headers as ... by papaf on Thursday January 21, 2021 @08:52AM (#25858741)
Its a common mistake to assume strings are UTF-8 but it is a mistake.

This is not a defence of Go but more of a warning to Go programmers.

Re:Golang's network stack attempts to parse HTTP headers as ... by adonovan on Thursday January 21, 2021 @12:14PM (#25861291)
Exactly. It's a convention, not a law of physics. If a string's UTF-8 validity is important to the correctness of your function, check it. It's not expensive.