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:
Sybren A. Stüvel 2022-03-21 13:24:07 +01:00
parent 1635179da0
commit c9dbb2620b

View File

@ -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()