Commit f90a01f8 authored by 0hax's avatar 0hax

[cragr] Use TLSv1

TLSv1_2 is not supported for some sites of cragr, so keep using older
parent 2df054db
Pipeline #1817 failed with stages
in 0 seconds
......@@ -21,6 +21,7 @@ from __future__ import unicode_literals
import re
import hashlib
import ssl
from html2text import unescape
from datetime import date, datetime, timedelta
......@@ -159,6 +160,14 @@ class Cragr(LoginBrowser, StatesMixin):
self.broken_perimeters = list()
self.BASEURL = 'https://%s/' % self.first_domain
def prepare_request(self, req):
preq = super(Cragr, self).prepare_request(req)
conn = self.session.adapters['https://'].get_connection(preq.url)
conn.ssl_version = ssl.PROTOCOL_TLSv1
return preq
def do_login(self):
Attempt to log in.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment