Skip to content

Commit

Permalink
Removing unnecessary encodedReq var
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Zheng <[email protected]>
Signed-off-by: Kody Kimberl <[email protected]>
  • Loading branch information
kody-kimberl and Two-Hearts authored Apr 21, 2023
1 parent 8673acc commit a81a325
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions revocation/ocsp/ocsp.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,8 @@ func executeOCSPCheck(cert, issuer *x509.Certificate, server string, opts Option

var resp *http.Response
postRequired := base64.StdEncoding.EncodedLen(len(ocspRequest)) >= 255
var encodedReq string
if !postRequired {
encodedReq = url.QueryEscape(base64.StdEncoding.EncodeToString(ocspRequest))
encodedReq := url.QueryEscape(base64.StdEncoding.EncodeToString(ocspRequest))
if len(encodedReq) < 255 {
var reqURL string
reqURL, err = url.JoinPath(server, encodedReq)
Expand Down

0 comments on commit a81a325

Please sign in to comment.