Scrapy, a fast high-level web crawling & scraping framework for Python.
Fix overwriting repeated headers
Malkiz223517ed0749b81
diff --git a/scrapy/core/http2/stream.py b/scrapy/core/http2/stream.pyindex e197790f7..ff82ad0fd 100644--- a/scrapy/core/http2/stream.py+++ b/scrapy/core/http2/stream.py@@ -332,7 +332,7 @@ class Stream:def receive_headers(self, headers: List[HeaderTuple]) -> None:for name, value in headers:- self._response['headers'][name] = value+ self._response['headers'].appendlist(name, value)# Check if we exceed the allowed max data size which can be receivedexpected_size = int(self._response['headers'].get(b'Content-Length', -1))