Skip to content

Commit

Permalink
Disabled hardcoded ssl version in curl transport
Browse files Browse the repository at this point in the history
  • Loading branch information
lorien committed Aug 28, 2014
1 parent 50e9a46 commit 2466afd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grab/transport/curl.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ def process_config(self, grab):
# Ignore SSL errors
self.curl.setopt(pycurl.SSL_VERIFYPEER, 0)
self.curl.setopt(pycurl.SSL_VERIFYHOST, 0)
self.curl.setopt(pycurl.SSLVERSION, pycurl.SSLVERSION_SSLv3)

# Disabled to avoid SSL3_READ_BYTES:sslv3 alert handshake failure error
#self.curl.setopt(pycurl.SSLVERSION, pycurl.SSLVERSION_SSLv3)

if grab.request_method == 'POST':
self.curl.setopt(pycurl.POST, 1)
Expand Down

0 comments on commit 2466afd

Please sign in to comment.