Skip to main content
The 2024 Developer Survey results are live! See the results
3 events
when toggle format what by license comment
Apr 26, 2022 at 18:59 comment added Thanatos I hate to contradict him of all people, since I figure he knows HTTP pretty freaking well, but… "The server shouldn't send content-encoding: gzip without the client having signaled that it is acceptable." Thing is, curl does signal that it is acceptable, by omitting the Accept-Encoding header. The standard says, in that case, "If no Accept-Encoding field is in the request, any content-coding is considered acceptable by the user agent." (To signal that no encoding is acceptable, I think, would require either Accept-Encoding: identity or `*;q=0, or an empty header.)
Dec 9, 2021 at 18:59 comment added BryanH That is not always reasonable or possible. If a server you don't own is configured incorrectly, it is unlikely you can get them to fix it. Coding defensively is a good approach to this problem. See the comment by George Lund for yet another reason why Everything is Broken ™.
Dec 9, 2021 at 10:58 history answered cweiske CC BY-SA 4.0