I'm running a go 1.7 HTTP server. One of my clients is applying gzip to the POST body of their request and applying the appropriate content-encoding header. The current server implementation in go, unlike the client, does not appear to automatically handle decompression of the body. This is causing calls to JSON unmarshal to fail because it, rightly, expects uncompressed data to work with.
Certainly, we could add our own gzip reader on top of the request body to handle this. It seems strange, though, that this case is accounted for in the go HTTP client but not the server.
Have I missed something obvious?