deanmao/xtend — pull request #4 by camwest (2012-10-13 15:02:28+00:00)
Title: Add support for x-forwarded-proto header

I wanted to open this pull request to show what I've done so far. I am still getting 'too many redirects'

On Heroku my express server only runs http, I expect the x-forwarded-proto header to be set (http://stackoverflow.com/questions/7185074/heroku-nodejs-http-to-https-ssl-forced-redirect) so the internal request would be performed over https

user ssl -> heroku ssl -> node non-ssl -> proxy ssl

Does that make sense? Should I still run two servers on heroku?