Leaklens

psf__requests-5414

Getting http://.example.com raises UnicodeError

Verdict: the issue points to the file or function that was changed (Tier B).

It seems like the intention so far has been to raise `InvalidUrl` instead (see e.g. [this line](https://github.com/psf/requests/blob/ca6f9af5dba09591007b15a7368bc0f006b7cc50/requests/models.py#L401)).

The text points to the exact place to change: “It seems like the intention so far has been to raise `InvalidUrl` instead (see e.g. [this line](https://github.com/psf/requests/blob/ca6f9af5dba09591007b15a7368bc0f006b7…”

All SWE-bench Verified tasks · more psf/requests tasks · How the check works