mirror of https://github.com/scrapy/scrapy.git
changed SSL version to use from SSLv23 to TLSv1. closes #194 but needs more testing against counter-effects
This commit is contained in:
parent
cba3967667
commit
5ebaa40ed2
|
|
@ -151,6 +151,11 @@ class ScrapyClientContextFactory(ClientContextFactory):
|
|||
# see https://github.com/scrapy/scrapy/issues/82
|
||||
# and https://github.com/scrapy/scrapy/issues/26
|
||||
|
||||
def __init__(self):
|
||||
# see this issue on why we use TLSv1_METHOD by default
|
||||
# https://github.com/scrapy/scrapy/issues/194
|
||||
self.method = SSL.TLSv1_METHOD
|
||||
|
||||
def getContext(self):
|
||||
ctx = ClientContextFactory.getContext(self)
|
||||
# Enable all workarounds to SSL bugs as documented by
|
||||
|
|
|
|||
Loading…
Reference in New Issue