Skip to content

Commit 938d1ce

Browse files
committed
Merge pull request brandicted#12 from titanjer/download_handler_wrapper
use smart HTTP Download Handler wrapper
2 parents e9ce7b9 + 514c387 commit 938d1ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scrapy_webdriver/download.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
if map(int, version_info) < [0, 18]:
88
FALLBACK_HANDLER = 'http.HttpDownloadHandler'
9+
elif map(int, version_info) >= [0, 24, 4]:
10+
FALLBACK_HANDLER = 'http.HTTPDownloadHandler'
911
else:
1012
FALLBACK_HANDLER = 'http10.HTTP10DownloadHandler'
1113
FALLBACK_HANDLER = 'scrapy.core.downloader.handlers.%s' % FALLBACK_HANDLER

0 commit comments

Comments
 (0)