Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Zheng <[email protected]>
  • Loading branch information
Two-Hearts committed Oct 10, 2024
1 parent 3728d48 commit 4638a96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions revocation/internal/ocsp/ocsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func executeOCSPCheck(ctx context.Context, cert, issuer *x509.Certificate, serve
return nil, GenericError{Err: err}
}
var httpReq *http.Request
httpReq, err = http.NewRequestWithContext(ctx, "GET", reqURL, nil)
httpReq, err = http.NewRequestWithContext(ctx, http.MethodGet, reqURL, nil)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -219,7 +219,7 @@ func executeOCSPCheck(ctx context.Context, cert, issuer *x509.Certificate, serve
}

func postRequest(ctx context.Context, req []byte, server string, httpClient *http.Client) (*http.Response, error) {
httpReq, err := http.NewRequestWithContext(ctx, "POST", server, bytes.NewReader(req))
httpReq, err := http.NewRequestWithContext(ctx, http.MethodPost, server, bytes.NewReader(req))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 4638a96

Please sign in to comment.