Skip to content

Commit

Permalink
Removed unused AllowedMethods from configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jscherff committed Sep 29, 2017
1 parent 2bc6221 commit b894cdf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"WriteTimeout": 10,
"MaxHeaderBytes": 1048576,
"HttpBodySizeLimit": 1048576,
"AllowedContentTypes": ["application/json"],
"AllowedMethods": ["POST"]
"AllowedContentTypes": ["application/json"]
},

"Database": {
Expand Down
1 change: 0 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
type Server struct {
*http.Server
AllowedContentTypes []string
AllowedMethods []string
HttpBodySizeLimit int64
}

Expand Down

0 comments on commit b894cdf

Please sign in to comment.