mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
file-server: fix ShowList on root dir
Former-commit-id: 6795382235d76942bcfd31ecc0b4ab02ecb85a8a
This commit is contained in:
9
iris.go
9
iris.go
@@ -212,6 +212,9 @@ func Default() *Application {
|
||||
app := New()
|
||||
app.Use(recover.New())
|
||||
app.Use(requestLogger.New())
|
||||
app.Use(Gzip)
|
||||
app.Use(GzipReader)
|
||||
|
||||
app.defaultMode = true
|
||||
|
||||
return app
|
||||
@@ -615,6 +618,12 @@ var (
|
||||
//
|
||||
// A shortcut for the `context#ErrPushNotSupported`.
|
||||
ErrPushNotSupported = context.ErrPushNotSupported
|
||||
// ErrGzipNotSupported may be returned from
|
||||
// `WriteGzip` and `GzipReader` methods if
|
||||
// the client does not support the "gzip" compression.
|
||||
//
|
||||
// A shortcut for the `context#ErrGzipNotSupported`.
|
||||
ErrGzipNotSupported = context.ErrGzipNotSupported
|
||||
)
|
||||
|
||||
// Constants for input argument at `router.RouteRegisterRule`.
|
||||
|
||||
Reference in New Issue
Block a user