Don't assume https in prod mode, use request

Hopefully.  Untested, though I have a suspicion that I've tried this
before without success.