(req)
| 31 | } |
| 32 | |
| 33 | function extractHostname (req) { |
| 34 | var headers = req.headers |
| 35 | , protocol = (req.connection.server instanceof tls.Server || |
| 36 | (req.headers['x-forwarded-proto'] && req.headers['x-forwarded-proto'].slice(0,5) === 'https')) |
| 37 | ? 'https://' |
| 38 | : 'http://' |
| 39 | , host = headers.host; |
| 40 | return protocol + host; |
| 41 | } |
| 42 | |
| 43 | function merge () { |
| 44 | var mergeInto = {}; |
no outgoing calls
no test coverage detected