Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[PyPI History](https://pypi.org/project/demisto-py/#history)

## 3.2.xx
* Updated custom request headers validation logic to handle "Cookie" headers.

## 3.2.14
* Added support for Python versions 3.11 and 3.12.

Expand Down
2 changes: 1 addition & 1 deletion demisto_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
__version__ = 'dev'


DEMISTO_HTTP_HEADERS_REGEX_PATTERN = r'^([\w-]+=[^=,\n]+)(,[\w-]+=[^=,\n]+)*$'
DEMISTO_HTTP_HEADERS_REGEX_PATTERN = r'^(Cookie=[^,\n]+|[\w-]+=[^=,\n]+)(,(Cookie=[^,\n]+|[\w-]+=[^=,\n]+))*$'


def configure(base_url=None, api_key=None, advanced_api_key=None, verify_ssl=None, proxy=None, username=None, password=None,
Expand Down
1 change: 1 addition & 0 deletions tests/mocks_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ def test_configure_client_invalid_additional_headers_form_env_var(self, mocker:
"Content-type=123",
{'Content-type': '123'}
),

(
" ",
{}
Expand Down