The gzip idea is giving me goosebumps however this must be a solved problem, right? I mean, the client device can also send zip bombs so it sounds like it should be DDOS 101?
So a zip bomb would just decompress up to whatever internal limit and be discarded.
A GET request doesn't have a body. There's nothing to gzip.
Just like all good c code always checks for overflows.
For example, as much as I'd like to praise Go's stdlib because of how far it can take you, the defaults for its HTTP server are "the URL+headers of a request can take as much as 1MB" and "no timeouts at all, wait forever if necessary". See the `Server` type and the `ListenAndServe` function (not method) from the `net/http` package for more details.
They're probably trying to be as conservative as possible, but 1MB is huge.