make util/original-url respect x-forwarded-proto/x-forwarded-port headers, when available