Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkle committed May 29, 2024
1 parent 6ef2f20 commit 2dd041b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybossa/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,8 @@ def get_service_request(task_id, service_name, major_version, minor_version):
if isinstance(service, dict):
url = '{}/{}/{}/{}'.format(proxy_service_config['uri'], service_name, major_version, minor_version)
headers = service.get('headers')
ssl_cert = current_app.config.get('SSL_CERT_PATH')
ret = requests.post(url, headers=headers, json=payload['data'], verify=ssl_cert if ssl_cert else True)
ssl_cert = current_app.config.get('SSL_CERT_PATH', True)
ret = requests.post(url, headers=headers, json=payload['data'], verify=ssl_cert)
return Response(ret.content, 200, mimetype="application/json")

current_app.logger.info(
Expand Down

0 comments on commit 2dd041b

Please sign in to comment.