by takeda · 6y ago · 0 comments
What I often want to do when reading user data is not treat it as a "encoded string", but just as a stream of bytes. Most data I work with (HTML files, output of other programs) can't be treated as anything but bytes, because people put junk in files / output of programs.
If you want to handle all headers, you have to be prepared to just get binary data.