Use http.MethodGet instead of "GET".

This commit is contained in:
Tobias Weingartner
2016-04-30 17:06:46 -07:00
parent 04089c533b
commit a3af232dc5
+1 -1
View File
@@ -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