On Heroku, it’s slightly tricky to determine the fact that the request came in over http. https is handled at a heroku routing layer and it passes along the request to the node app on http).
This post got me unstuck http://jaketrent.com/post/https-redirect-node-heroku/