Skip to content

Commit ff5f205

Browse files
committed
Make transaction IDs strings to work with python requests 2.11
Issues: Fixes #641 Problem: requests 2.11 changed compatibility to disallow integers inside of headers. The result was that the transaction functionality in the SDK broke because transaction IDs are integers and sent in the headers of the request (X-F5-REST-Coordination-Id). Analysis: This patch casts the integers to strings to correct the problem. Tests: none
1 parent 7152a52 commit ff5f205

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

f5/bigip/contexts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __enter__(self):
5050
self.transaction = self.transaction.create()
5151

5252
self.icr.session.headers.update({
53-
'X-F5-REST-Coordination-Id': self.transaction.transId
53+
'X-F5-REST-Coordination-Id': str(self.transaction.transId)
5454
})
5555
return self.bigip
5656

0 commit comments

Comments
 (0)