diff --git a/scrapy_poet/page_input_providers.py b/scrapy_poet/page_input_providers.py index dd40f952..c7ae8002 100644 --- a/scrapy_poet/page_input_providers.py +++ b/scrapy_poet/page_input_providers.py @@ -193,7 +193,7 @@ def deserialize(self, data: Any) -> Sequence[Any]: response_data["url"], response_data["body"], status=response_data["status"], - headers=HttpResponseHeaders.from_bytes_dict(response_data["headers"]), + headers=response_data["headers"], encoding=response_data["_encoding"], ) for response_data in data