Skip to content

Commit

Permalink
Merge pull request #33 from pinguo-yangbing/master
Browse files Browse the repository at this point in the history
fixbug file plugins
  • Loading branch information
pinguo-yangbing authored Jan 14, 2020
2 parents 35afeb6 + 87f082b commit 0b9968c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ func (s *Server) SetPlugins(v []interface{}) {
name := vv.(string)
switch name {
case "gzip":
s.plugins = append(s.plugins, NewGzip())
s.AddPlugin(NewGzip())
case "file":
s.plugins = append(s.plugins, NewFile(App().componentConf("file")))
s.AddPlugin(NewFile(nil))
default:
panic("For the defined plug-in:" + name)
}
Expand Down

0 comments on commit 0b9968c

Please sign in to comment.