(self, httpbin)
| 1234 | assert prep.url == "https://httpbin.org/" |
| 1235 | |
| 1236 | def test_request_with_bytestring_host(self, httpbin): |
| 1237 | s = requests.Session() |
| 1238 | resp = s.request( |
| 1239 | "GET", |
| 1240 | httpbin("cookies/set?cookie=value"), |
| 1241 | allow_redirects=False, |
| 1242 | headers={"Host": b"httpbin.org"}, |
| 1243 | ) |
| 1244 | assert resp.cookies.get("cookie") == "value" |
| 1245 | |
| 1246 | def test_links(self): |
| 1247 | r = requests.Response() |