Skip to content

Commit b5c16af

Browse files
Merge pull request #96 from shasibhusanJena/add_uuid
add X-Request-Id in UMAPI GET calls
2 parents fdc257d + 64c7e37 commit b5c16af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

umapi_client/connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import json
2222
import logging
2323
import os
24+
import uuid
2425
from email.utils import parsedate_tz, mktime_tz
2526
from platform import python_version, version as platform_version
2627
from random import randint
@@ -497,7 +498,7 @@ def call():
497498
if not delete:
498499
def call():
499500
return self.session.get(self.endpoint + path, auth=self.auth, timeout=self.timeout,
500-
verify=self.ssl_verify)
501+
verify=self.ssl_verify, headers={"X-Request-Id": str(uuid.uuid4())})
501502
else:
502503
def call():
503504
return self.session.delete(self.endpoint + path, auth=self.auth, timeout=self.timeout,

0 commit comments

Comments
 (0)