infer_url() now attempts to spot https