2 ms·
"Chunked encoding is used a lot in DNS over HTTPS servers, and it's a real pain to parse them." Always wondered if developers found that easy. I just strip ou
by 1vuio0pswjnm7 6y ago
"Chunked encoding is used a lot in DNS over HTTPS servers, and it's a real pain to parse them."
Always wondered if developers found that easy.
I just strip out the chunk lengths with a filter, suitable for use in UNIX pipes. It's like three lines in flex. I have always been aware of the different things that servers could "legally" do with chunking from reading the HTTP/1.1 spec but as the parent says no ever does anything beyond the basic chunk lengths. For example, how many servers support chunked uploads.
With the filter I wrote, as crude as it is, I have never had any problems. Works great with HTTP/1.1-pipelined DoH responses.