Manager: add GZip middleware
Add support for GZip-compressed streams. This becomes increasingly important when Shaman support gets added, as the blend files typically used in studios are uncompressed to support binary diffing.
This commit is contained in:
parent
1635179da0
commit
c9dbb2620b
@ -156,6 +156,7 @@ func buildWebService(
|
|||||||
|
|
||||||
// Ensure panics when serving a web request won't bring down the server.
|
// Ensure panics when serving a web request won't bring down the server.
|
||||||
e.Use(middleware.Recover())
|
e.Use(middleware.Recover())
|
||||||
|
e.Use(middleware.Gzip())
|
||||||
|
|
||||||
// Load the API definition and enable validation & authentication checks.
|
// Load the API definition and enable validation & authentication checks.
|
||||||
swagger, err := api.GetSwagger()
|
swagger, err := api.GetSwagger()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user