mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-05 18:44:58 +03:00
Use http.MethodGet instead of "GET".
This commit is contained in:
parent
04089c533b
commit
a3af232dc5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue