Basically, if you add compression middleware, any 404 not found calls result in an error because the 404 is handled after the entire gin.HandlerChain has attempted to process.
(oath_tools) [scr@MacBook-Pro-3]$ curl --compressed localhost:4080/
curl: (52) Empty reply from server
In order to fix this, the issue above would need to be addressed or you would need to roll your own WrapHH as in the PR turtlemonvh/gin-wraphh#8