use http consts for request methods

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2022-11-02 23:31:23 +01:00
parent 7f9f86c411
commit f9ccd2c6ea
33 changed files with 211 additions and 211 deletions

View File

@@ -342,7 +342,7 @@ func TestAccessController(t *testing.T) {
}
// 1. Make a mock http.Request with no token.
req, err := http.NewRequest("GET", "http://example.com/foo", nil)
req, err := http.NewRequest(http.MethodGet, "http://example.com/foo", nil)
if err != nil {
t.Fatal(err)
}