Do not use possibly nil HttpRequest object in default OCSP handler (#18190)

This commit is contained in:
Steven Clark 2022-12-01 13:23:41 -05:00 committed by GitHub
parent f5543bd25b
commit 9bf3b4c582
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,7 +239,7 @@ func fetchDerEncodedRequest(request *logical.Request, data *framework.FieldData)
} }
return requestBytes, nil return requestBytes, nil
default: default:
return nil, fmt.Errorf("unsupported request method: %s", request.HTTPRequest.Method) return nil, fmt.Errorf("unsupported request method: %s", request.Operation)
} }
} }