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

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