fix double proxifying when handling location headers