From bcca989b2d78c9e350548dba357e5ceb5722a833 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Tue, 28 Jun 2016 12:01:37 +0100 Subject: [PATCH] Get the request protocol from express request. --- lib/ngoverrides.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ngoverrides.js b/lib/ngoverrides.js index 17c2b3b..1177c58 100644 --- a/lib/ngoverrides.js +++ b/lib/ngoverrides.js @@ -170,9 +170,7 @@ function registerModule(context) { ), protocol: ifRequest( function () { - // TODO: Make this be 'https' when the - // request is SSL? - return 'http'; + return request.protocol || 'http'; } ), search: parsedUrl(