MCPcopy Create free account
hub / github.com/apify/impit / test_response_headers_encoding

Function test_response_headers_encoding

impit-python/test/response_test.py:43–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_response_headers_encoding() -> None:
44 response = Response(
45 200, headers={'Content-Type': 'text/plain; charset=cp1250'}, content=b'\x9e\x64\xe1\xf8\x65\x6e\xed'
46 )
47
48 assert response.text == 'ždáření'
49
50
51def test_response_headers_explicit_encoding() -> None:

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…