Skip to content

Commit

Permalink
Adding exception for wrong base url (#106)
Browse files Browse the repository at this point in the history
* adding exception for wrong base url

* replace https-api

* add changelog

* Update CHANGELOG.md

* add changelog
  • Loading branch information
daryakoval authored Jan 29, 2023
1 parent 582fd7e commit 5a7f98f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
[PyPI History][1]
[1]: https://pypi.org/project/demisto-py/#history

## 3.2.7
* Added an ability to change `DEMISTO_BASE_URL` environment variable to api url, when using XSIAM.

## 3.2.6
* Added support for proxy basic authentication.

Expand Down
2 changes: 2 additions & 0 deletions demisto_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def configure(base_url=None, api_key=None, verify_ssl=None, proxy=None, username
if auth_id:
configuration.api_key['x-xdr-auth-id'] = auth_id
configuration.host = os.path.join(configuration.host, 'xsoar')
if not configuration.host.startswith("https://api-"):
configuration.host = configuration.host.replace('https://', 'https://api-')
configuration.verify_ssl = verify_ssl
configuration.proxy = proxy
configuration.debug = debug
Expand Down

0 comments on commit 5a7f98f

Please sign in to comment.