Skip to content
Open
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
13 changes: 7 additions & 6 deletions streampipes-client-python/streampipes/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ class StreamPipesClient:
```python
client_config = StreamPipesClientConfig(
credential_provider=StreamPipesApiKeyCredentials(
username="test-user",
api_key="api-key"
),
host_address="localhost",
https_disabled=True
username="test-user",
api_key="api-key"
),
host_address="localhost",
https_disabled=True
)
```

Expand Down Expand Up @@ -180,7 +180,8 @@ def refresh_headers(self):
"""Updates the header of the request session"""
self.request_session.headers.clear()
self.request_session.headers.update(self.http_headers)
self.request_session.headers.update(self.client_config.additional_headers)
if self.client_config.additional_headers:
self.request_session.headers.update(self.client_config.additional_headers)

@staticmethod
def _set_up_logging(logging_level: int) -> None:
Expand Down
Loading