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
1 changed files with 1 additions and 1 deletions

View File

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