diff options
author | Valery Piashchynski <[email protected]> | 2021-02-23 19:11:52 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-23 19:11:52 +0300 |
commit | 18a097292a567fccdd02304ff236bf78d769965d (patch) | |
tree | 2fb7cb0833a85397936f6bbad6d1bad33cde3602 /plugins/gzip/plugin.go | |
parent | 123c5e96132cdc8f78f26c2f31e52b6a7ddc2e91 (diff) | |
parent | fdbf6a61600745b5cb1022117dcd9b06d392dc84 (diff) |
Merge pull request #559 from spiral/log_does_not_show_any_message
fix(various): Small fixes before release
Diffstat (limited to 'plugins/gzip/plugin.go')
-rw-r--r-- | plugins/gzip/plugin.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gzip/plugin.go b/plugins/gzip/plugin.go index eee6c1d3..949c6888 100644 --- a/plugins/gzip/plugin.go +++ b/plugins/gzip/plugin.go @@ -8,19 +8,19 @@ import ( const PluginName = "gzip" -type Gzip struct{} +type Plugin struct{} // needed for the Endure -func (g *Gzip) Init() error { +func (g *Plugin) Init() error { return nil } -func (g *Gzip) Middleware(next http.Handler) http.HandlerFunc { +func (g *Plugin) Middleware(next http.Handler) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { gziphandler.GzipHandler(next).ServeHTTP(w, r) } } -func (g *Gzip) Name() string { +func (g *Plugin) Name() string { return PluginName } |