From b894cdf4c68ad4ce3cb6a7fc1e76fc1fb6436c38 Mon Sep 17 00:00:00 2001 From: John Scherff Date: Fri, 29 Sep 2017 11:12:36 -0700 Subject: [PATCH] Removed unused AllowedMethods from configuration --- config.json | 3 +-- server.go | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/config.json b/config.json index 9d570af..86e65c8 100644 --- a/config.json +++ b/config.json @@ -5,8 +5,7 @@ "WriteTimeout": 10, "MaxHeaderBytes": 1048576, "HttpBodySizeLimit": 1048576, - "AllowedContentTypes": ["application/json"], - "AllowedMethods": ["POST"] + "AllowedContentTypes": ["application/json"] }, "Database": { diff --git a/server.go b/server.go index 5ffc3e1..c4549a7 100644 --- a/server.go +++ b/server.go @@ -24,7 +24,6 @@ import ( type Server struct { *http.Server AllowedContentTypes []string - AllowedMethods []string HttpBodySizeLimit int64 }