()
| 238 | |
| 239 | |
| 240 | def test_same_origin(): |
| 241 | origin = httpx.URL("https://example.com") |
| 242 | request = httpx.Request("GET", "HTTPS://EXAMPLE.COM:443") |
| 243 | |
| 244 | client = httpx.Client() |
| 245 | headers = client._redirect_headers(request, origin, "GET") |
| 246 | |
| 247 | assert headers["Host"] == request.url.netloc.decode("ascii") |
| 248 | |
| 249 | |
| 250 | def test_not_same_origin(): |
nothing calls this directly
no test coverage detected