Skip to content

Commit 51e3074

Browse files
Harshit GuptaHarshit Gupta
authored andcommitted
Custom-Header-Support
Signed-off-by: Harshit Gupta <harshitgupta@Harshits-MacBook-Pro.local>
1 parent 61cf72e commit 51e3074

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

redstone/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,16 @@ def __init__(
5858
verify=True,
5959
endpoint_url=None,
6060
credentials=None,
61+
headers=None
6162
):
6263

6364
self.session = requests.Session()
6465
self.session.verify = verify
6566

6667
self.credentials = credentials
68+
# Custom Header Input check
69+
if headers:
70+
self.session.headers = headers
6771
# respect old path if user builds us directly with API key
6872
if iam_api_key:
6973
LOG.warn(

0 commit comments

Comments
 (0)