Browse Source

publish muk_utils - 11.0

pull/6/head
MuK IT GmbH 6 years ago
parent
commit
f114132d41
  1. 4
      muk_utils/tools/http.py

4
muk_utils/tools/http.py

@ -54,9 +54,9 @@ def get_response(url):
session = requests.Session()
session.cookies['session_id'] = request.session.sid
try:
response = session.post("%s%s" % (base_url, path), params)
response = session.post("%s%s" % (base_url, path), params, verify=False)
return response.status_code, response.headers, response.content
except Exception as exception:
except requests.exceptions.SSLError as exception:
_logger.info("Trying custom certificate")
custom_cert = config.get("muk_custom_certificate", False)
try:

Loading…
Cancel
Save