Open graingert opened 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.
request.protocol || 'http'
might also be worth looking at req.secure too, ah turns out that just looks at require.protocol
@kshay ping
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.