From 6840dcdef35fd9d58833d03a575239be1eefad79 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Mon, 20 Apr 2015 11:31:26 -0400 Subject: [PATCH] http connection now gets 'unknown' fingerprint --- lib/routes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes.js b/lib/routes.js index c2f1958f..1c16440d 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -207,6 +207,6 @@ function session(req) { } function getFingerprint(req) { - return typeof req.connection.getPeerCertificate === 'function' && - req.connection.getPeerCertificate().fingerprint; + return (typeof req.connection.getPeerCertificate === 'function' && + req.connection.getPeerCertificate().fingerprint) || 'unknown'; }