Commit 0ce05a1b authored by Antoine BOSSY's avatar Antoine BOSSY Committed by ntome

[hsbc] Use the default tls settings. Fixes #188

parent 09d5f2f3
Pipeline #2192 created with stages
......@@ -20,7 +20,6 @@
from __future__ import unicode_literals
import re
import ssl
from datetime import timedelta, date
from lxml.etree import XMLSyntaxError
from collections import OrderedDict
......@@ -132,14 +131,6 @@ class HSBC(LoginBrowser):
def load_state(self, state):
return
def prepare_request(self, req):
preq = super(HSBC, 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):
self.session.cookies.clear()
......
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