Skip to content

Commit 2ddeede

Browse files
committed
Update the HTTP11DownloadHandler import path.
1 parent b387b42 commit 2ddeede

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scrapy_playwright/handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
Route,
2525
)
2626
from scrapy import Spider, signals
27-
from scrapy.core.downloader.handlers.http import HTTPDownloadHandler
27+
from scrapy.core.downloader.handlers.http11 import HTTP11DownloadHandler
2828
from scrapy.crawler import Crawler
2929
from scrapy.exceptions import NotSupported, ScrapyDeprecationWarning
3030
from scrapy.http import Request, Response
@@ -133,7 +133,7 @@ def from_settings(cls, settings: Settings) -> "Config":
133133
return cfg
134134

135135

136-
class ScrapyPlaywrightDownloadHandler(HTTPDownloadHandler):
136+
class ScrapyPlaywrightDownloadHandler(HTTP11DownloadHandler):
137137
playwright_context_manager: Optional[PlaywrightContextManager] = None
138138
playwright: Optional[AsyncPlaywright] = None
139139

0 commit comments

Comments
 (0)