Fixed X-Original-URL

The default port logic was missing brackets around the HTTP or HTTPS
condition