Skip to content

Commit 70286fa

Browse files
committed
convert header value to str in case its an int or other simple type.
1 parent d609c1a commit 70286fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-devops/azure/devops/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _send(self, http_method, location_id, version, route_values=None,
9191
'Accept': accept_media_type + ';api-version=' + negotiated_version}
9292
if additional_headers is not None:
9393
for key in additional_headers:
94-
headers[key] = additional_headers[key]
94+
headers[key] = str(additional_headers[key])
9595
if self.config.additional_headers is not None:
9696
for key in self.config.additional_headers:
9797
headers[key] = self.config.additional_headers[key]

0 commit comments

Comments
 (0)