mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
chore(variable): Go stdlib vars for HTTP methods and status codes (#18062)
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
func (s *HTTPServer) VariablesListRequest(resp http.ResponseWriter, req *http.Request) (interface{}, error) {
|
||||
if req.Method != "GET" {
|
||||
if req.Method != http.MethodGet {
|
||||
return nil, CodedError(http.StatusMethodNotAllowed, ErrInvalidMethod)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user