saymedia / angularjs-server

Specialized server for AngularJS sites
MIT License
247 stars 49 forks source link

Get the request protocol from express request. #33

Open graingert opened 8 years ago

kshay commented 8 years ago

This seems fine, but we might be safer with request.protocol || 'http' since this module tends to be used in contexts with mocked requests that don't necessarily have a full set of properties.

graingert commented 8 years ago

might also be worth looking at req.secure too, ah turns out that just looks at require.protocol

graingert commented 8 years ago

@kshay ping