MCPcopy
hub / github.com/psf/requests / test_header_remove_is_case_insensitive

Method test_header_remove_is_case_insensitive

tests/test_requests.py:1731–1736  ·  view source on GitHub ↗
(self, httpbin)

Source from the content-addressed store, hash-verified

1729 assert s.get_adapter(url_extended_hostname) is adapter
1730
1731 def test_header_remove_is_case_insensitive(self, httpbin):
1732 # From issue #1321
1733 s = requests.Session()
1734 s.headers["foo"] = "bar"
1735 r = s.get(httpbin("get"), headers={"FOO": None})
1736 assert "foo" not in r.request.headers
1737
1738 def test_params_are_merged_case_sensitive(self, httpbin):
1739 s = requests.Session()

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
httpbinFunction · 0.85

Tested by

no test coverage detected