Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Keyword arguments when creating a _ResponseReader

Eugenio Lacuestaa64fa2f0866c
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.py
index 49c9eacac..7a1a77b23 100644
--- a/scrapy/core/downloader/handlers/http11.py
+++ b/scrapy/core/downloader/handlers/http11.py
@@ -417,14 +417,14 @@ class ScrapyAgent:
d = defer.Deferred(_cancel)
txresponse.deliverBody(
_ResponseReader(
- d,
- txresponse,
- request,
- maxsize,
- warnsize,
- fail_on_dataloss,
- self._crawler,
- self._source,
+ finished=d,
+ txresponse=txresponse,
+ request=request,
+ maxsize=maxsize,
+ warnsize=warnsize,
+ fail_on_dataloss=fail_on_dataloss,
+ crawler=self._crawler,
+ source=self._source,
)
)