mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-06-21 17:48:35 +03:00
all: consistently use http.Method{Get,Post,Put} across the codebase
This is a follow-up after 9dec3c8f80
This commit is contained in:
@@ -674,7 +674,7 @@ func WriteAPIHelp(w io.Writer, pathList [][2]string) {
|
||||
// GetRequestURI returns requestURI for r.
|
||||
func GetRequestURI(r *http.Request) string {
|
||||
requestURI := r.RequestURI
|
||||
if r.Method != "POST" {
|
||||
if r.Method != http.MethodPost {
|
||||
return requestURI
|
||||
}
|
||||
_ = r.ParseForm()
|
||||
|
||||
Reference in New Issue
Block a user