Skip to content

Commit 0cdd204

Browse files
committed
added run id to header
1 parent a5f1a95 commit 0cdd204

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

kbcstorage/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
.. _Storage API documentation:
1010
http://docs.keboola.apiary.io/
1111
"""
12+
import os
13+
1214
from kbcstorage.retry_requests import MAX_RETRIES_DEFAULT, RetryRequests
1315
import requests
1416

@@ -43,6 +45,7 @@ def __init__(self, root_url, path_component, token, max_requests_retries=MAX_RET
4345
path_component.strip('/'))
4446
self.token = token
4547
self._auth_header = {'X-StorageApi-Token': self.token,
48+
'X-KBC-RunId': os.environ.get('KBC_RUNID'),
4649
'Accept-Encoding': 'gzip',
4750
'User-Agent': 'Keboola Storage API Python Client'}
4851
self.requests = RetryRequests(max_requests_retries)

0 commit comments

Comments
 (0)