Commit a3af232d authored by Tobias Weingartner's avatar Tobias Weingartner

Use http.MethodGet instead of "GET".

parent 04089c53
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment