chore(variable): Go stdlib vars for HTTP methods and status codes (#18062)

This commit is contained in:
Ville Vesilehto
2023-07-26 16:30:11 +03:00
committed by GitHub
parent a8fd803176
commit 5c9cd35055
2 changed files with 24 additions and 24 deletions

View File

@@ -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)
}