()
| 187 | // Cannot use express request `secure` property in production, due to |
| 188 | // cluster setup. |
| 189 | const isSecure = function() { |
| 190 | return this.secure || (this.headers['x-forwarded-proto'] === 'https'); |
| 191 | }; |
| 192 | |
| 193 | return app.use(function(req, res, next) { |
| 194 | req.isSecure = isSecure; |
nothing calls this directly
no outgoing calls
no test coverage detected