()
| 248 | |
| 249 | |
| 250 | def test_not_same_origin(): |
| 251 | origin = httpx.URL("https://example.com") |
| 252 | request = httpx.Request("GET", "HTTP://EXAMPLE.COM:80") |
| 253 | |
| 254 | client = httpx.Client() |
| 255 | headers = client._redirect_headers(request, origin, "GET") |
| 256 | |
| 257 | assert headers["Host"] == origin.netloc.decode("ascii") |
| 258 | |
| 259 | |
| 260 | def test_is_https_redirect(): |
nothing calls this directly
no test coverage detected