Actually this will be useful in any proxied env, not just heroku