From a3af232dc5b33dddeb94525484ee5a0029ffd5d4 Mon Sep 17 00:00:00 2001 From: Tobias Weingartner Date: Sat, 30 Apr 2016 17:06:46 -0700 Subject: [PATCH] Use http.MethodGet instead of "GET". --- middleware/markdown/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/markdown/markdown.go b/middleware/markdown/markdown.go index 11078e7b..6b09db46 100644 --- a/middleware/markdown/markdown.go +++ b/middleware/markdown/markdown.go @@ -142,7 +142,7 @@ func (md Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error // } middleware.SetLastModifiedHeader(w, lastModTime) - if r.Method == "GET" { + if r.Method == http.MethodGet { w.Write(html) } return http.StatusOK, nil