Fix reverse-proxy shim.

This should fix the issue described in fedora-infra/fedora-packages#92

This has been lazily hotpatched in stg.
Merge pull request #44 from fedora-infra/feature/proxy-fix

Fix reverse-proxy shim.