Skip to content

Commit

Permalink
need capitalized http methods
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
  • Loading branch information
wagoodman committed Aug 25, 2023
1 parent 4a41bd8 commit 5722d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quill/notary/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func newHTTPClient(token string, httpTimeout time.Duration) *httpClient {
}

func (s httpClient) get(ctx context.Context, endpoint string, body io.Reader) (*http.Response, error) {
request, err := http.NewRequest("get", endpoint, body)
request, err := http.NewRequest(http.MethodGet, endpoint, body)
if err != nil {
return nil, err
}
Expand All @@ -38,7 +38,7 @@ func (s httpClient) get(ctx context.Context, endpoint string, body io.Reader) (*
}

func (s httpClient) post(ctx context.Context, endpoint string, body io.Reader) (*http.Response, error) {
request, err := http.NewRequest("post", endpoint, body)
request, err := http.NewRequest(http.MethodPost, endpoint, body)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5722d73

Please sign in to comment.