Skip to content

Commit

Permalink
Cap body limit to 6M (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ungureanuvladvictor authored Oct 1, 2017
1 parent 5865f26 commit 848df49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func New(db *sqlx.DB, startup *config.Startup) *Server {
e := echo.New()

e.Use(bm.ContextMiddleware)
e.Use(middleware.BodyLimit("6M"))
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Format: config.EchoLoggingFormat,
Skipper: func(c echo.Context) bool {
Expand Down

0 comments on commit 848df49

Please sign in to comment.