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(