summaryrefslogtreecommitdiffstats
path: root/vendor/go.uber.org/zap/http_handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/go.uber.org/zap/http_handler.go')
-rw-r--r--vendor/go.uber.org/zap/http_handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/go.uber.org/zap/http_handler.go b/vendor/go.uber.org/zap/http_handler.go
index f171c3847..1b0ecaca9 100644
--- a/vendor/go.uber.org/zap/http_handler.go
+++ b/vendor/go.uber.org/zap/http_handler.go
@@ -48,11 +48,11 @@ func (lvl AtomicLevel) ServeHTTP(w http.ResponseWriter, r *http.Request) {
switch r.Method {
- case "GET":
+ case http.MethodGet:
current := lvl.Level()
enc.Encode(payload{Level: &current})
- case "PUT":
+ case http.MethodPut:
var req payload
if errmess := func() string {