You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
req.connection.encrypted is undefined in node:14 #223
How did this cause an issue?
With a plain http connection encrypted is undefined, that's true. But that's falsy so protocol is going to be 'http'. When the connection is https it is defined and it's true (at least with express) so protocol will be 'https'
Activity
varrocs commentedon Jan 24, 2022
Hello!
How did this cause an issue?
With a plain http connection encrypted is undefined, that's true. But that's falsy so
protocolis going to be 'http'. When the connection is https it is defined and it's true (at least with express) soprotocolwill be 'https'