We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d96083b commit 6e65f26Copy full SHA for 6e65f26
lib/internal/quic/core.js
@@ -2287,12 +2287,11 @@ class QuicServerSession extends QuicSession {
2287
async [kHandleOcsp](servername) {
2288
const internalState = this[kInternalState];
2289
const { context } = this[kInternalServerState];
2290
- const certificate = context?.context.getCertificate?.();
2291
- const issuer = context?.context.getIssuer?.();
2292
- return internalState.ocspHandler?.('request', {
+ if (!internalState.ocspHandler || !context) return undefined;
+ return internalState.ocspHandler('request', {
2293
servername,
2294
- certificate,
2295
- issuer
+ certificate: context.context.getCertificate(),
+ issuer: context.context.getIssuer()
2296
});
2297
}
2298
0 commit comments