From 36df29a6105c76d43510e8d0f0e91ca03f8877aa Mon Sep 17 00:00:00 2001 From: Kevin Lloyd Bernal Date: Mon, 16 May 2022 12:24:25 +0800 Subject: [PATCH] remove from_bytes_dict() call when deserializing responses --- scrapy_poet/page_input_providers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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