mirror of
https://github.com/kataras/iris.git
synced 2025-12-30 16:27:04 +00:00
fix https://github.com/kataras/iris/issues/1608 with the help of @AlbinoGeek for monitoring and together found the source of the problem
This commit is contained in:
@@ -238,6 +238,9 @@ func (p *prefixedDir) Open(name string) (http.File, error) {
|
||||
var (
|
||||
// Compression is a middleware which enables
|
||||
// writing and reading using the best offered compression.
|
||||
// Usage:
|
||||
// app.Use (for matched routes)
|
||||
// app.UseRouter (for both matched and 404s or other HTTP errors).
|
||||
Compression = func(ctx Context) {
|
||||
ctx.CompressWriter(true)
|
||||
ctx.CompressReader(true)
|
||||
|
||||
Reference in New Issue
Block a user