Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error if req.connection isn't set #95

isaacs opened this Issue Aug 28, 2011 · 0 comments


None yet
2 participants

isaacs commented Aug 28, 2011

    req.headers['x-forwarded-proto'] = res.connection.pair ? 'https' : 'http';
TypeError: Cannot read property 'pair' of undefined
    at [object Object].proxyRequest (/opt/smartdc/node_modules/http-proxy/lib/node-http-proxy.js:456:54)
    at cacheHit (/opt/smartdc/hostrouter/server.js:145:9)
    at proxyHandler (/opt/smartdc/hostrouter/server.js:106:12)
    at Server.<anonymous> (/opt/smartdc/node_modules/http-proxy/lib/node-http-proxy.js:237:47)
    at Server.emit (events.js:67:17)
    at HTTPParser.onIncoming (http.js:1131:12)
    at HTTPParser.onHeadersComplete (http.js:108:31)
    at Socket.ondata (http.js:1026:22)
    at Socket._onReadable (net.js:683:27)
    at IOWatcher.onReadable [as callback] (net.js:177:10)

@indexzero indexzero closed this in 62201a0 Aug 28, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment