Skip to content

Commit f859981

Browse files
fix: support string type response.data (#504)
1 parent 069ac06 commit f859981

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/google-auth/google/auth/impersonated_credentials.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def _make_iam_token_request(request, principal, headers, body):
8888

8989
response = request(url=iam_endpoint, method="POST", headers=headers, body=body)
9090

91+
# support both string and bytes type response.data
9192
response_body = (
9293
response.data.decode("utf-8")
9394
if hasattr(response.data, "decode")

0 commit comments

Comments
 (0)