Skip to content

Commit

Permalink
chore(lumapps-client): add lumapps-organization-id header
Browse files Browse the repository at this point in the history
  • Loading branch information
chloecarton committed Oct 3, 2024
1 parent 13f3f9d commit 803ffd6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lumapps/api/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
import json
import logging
from copy import deepcopy
from functools import lru_cache, partial
from io import FileIO
Expand Down Expand Up @@ -79,6 +81,11 @@ def __init__(
self.cache = DiscoveryCacheDict()
self.dry_run = dry_run
self._langs = None
extra_http_headers = {
**({"LumApps-Organization-Id": str(self.customer_id)}),
**(extra_http_headers or {}),
}
logging.warning(f"SDK Headers are: {json.dumps(extra_http_headers)}")
super().__init__(
api_info,
auth_info=auth_info,
Expand Down

0 comments on commit 803ffd6

Please sign in to comment.