mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-24 02:02:26 -04:00
Use http.MethodGet instead of "GET".
This commit is contained in:
parent
04089c533b
commit
a3af232dc5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user