Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.

Commit 2f4425d

Browse files
committed
Fix client headers.
1 parent 8bc9e53 commit 2f4425d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elastic_app_search/request_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def __init__(self, api_key, base_url):
1212

1313
headers = {
1414
'Authorization': "Bearer {}".format(api_key),
15-
'X-Swiftype-Client': 'swiftype-app-search-python',
15+
'X-Swiftype-Client': 'elastic-app-search-python',
1616
'X-Swiftype-Client-Version': elastic_app_search.__version__,
1717
'content-type': 'application/json; charset=utf8'
1818
}

tests/test_request_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_headers_initialization(self):
3535
headers_to_check,
3636
{
3737
'Authorization': 'Bearer {}'.format(self.api_host_key),
38-
'X-Swiftype-Client': 'swiftype-app-search-python',
38+
'X-Swiftype-Client': 'elastic-app-search-python',
3939
'X-Swiftype-Client-Version': version
4040
}
4141
)

0 commit comments

Comments
 (0)