mirror of
https://github.com/wahyd4/caddy.git
synced 2026-08-13 23:40:47 +10:00
Use http.MethodGet instead of "GET".
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user