This patch addresses Issue 42. Keep in mind the following;

/* TODO: this currently redirects to the host without port
 * but as you can imagine, a non-standard TLS port could have
 * been configured. The full redirect might be configured in
 * the future when such demand is considered necessary.
 */