(self, httpbin)
| 137 | assert req.headers["Content-Length"] == "0" |
| 138 | |
| 139 | def test_override_content_length(self, httpbin): |
| 140 | headers = {"Content-Length": "not zero"} |
| 141 | r = requests.Request("POST", httpbin("post"), headers=headers).prepare() |
| 142 | assert "Content-Length" in r.headers |
| 143 | assert r.headers["Content-Length"] == "not zero" |
| 144 | |
| 145 | def test_path_is_not_double_encoded(self): |
| 146 | request = requests.Request("GET", "http://0.0.0.0/get/test case").prepare() |