Fix reverse-proxy shim.

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

This has been lazily hotpatched in stg.