use http.Method

This commit is contained in:
Michael Yang
2023-11-02 13:10:58 -07:00
parent 2e53704685
commit 60bb3c03a1
5 changed files with 10 additions and 10 deletions

View File

@@ -72,7 +72,7 @@ func ClientFromEnvironment() (*Client, error) {
},
}
mockRequest, err := http.NewRequest("HEAD", client.base.String(), nil)
mockRequest, err := http.NewRequest(http.MethodHead, client.base.String(), nil)
if err != nil {
return nil, err
}