Skip to content
This repository was archived by the owner on Aug 9, 2018. It is now read-only.

Commit bcca989

Browse files
graingertThomas Grainger
authored and
Thomas Grainger
committed
Get the request protocol from express request.
1 parent 58da3af commit bcca989

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/ngoverrides.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ function registerModule(context) {
170170
),
171171
protocol: ifRequest(
172172
function () {
173-
// TODO: Make this be 'https' when the
174-
// request is SSL?
175-
return 'http';
173+
return request.protocol || 'http';
176174
}
177175
),
178176
search: parsedUrl(

0 commit comments

Comments
 (0)