Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
localhost
instead of http://localhost
in `TestClient(client=.…
…..)` example (#2870) With #2810, it is possible to override the client host (i.e. the remote address; see https://www.starlette.io/requests/#client-address). The default value for `TestClient` is `testclient`, but an IP address in most circumstances. The documentation example for overriding the client host uses a full URI, which makes no sense: it's the remote address.
- Loading branch information