commit | 9b7228ec849e311bcb4007ad3e23cf2f1e54a721 | [log] [tgz] |
---|---|---|
author | arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> | Wed May 06 17:11:01 2020 -0700 |
committer | GitHub <noreply@github.com> | Wed May 06 17:11:01 2020 -0700 |
tree | 7d15642398092bd8d6a8465df02c8d07dae8c3dd | |
parent | e115bae9b725215945fda7d50805fe3ba6e597f9 [diff] [blame] |
fix: support string type response.data (#504)
diff --git a/google/auth/impersonated_credentials.py b/google/auth/impersonated_credentials.py index c2351e7..84df484 100644 --- a/google/auth/impersonated_credentials.py +++ b/google/auth/impersonated_credentials.py
@@ -88,6 +88,7 @@ response = request(url=iam_endpoint, method="POST", headers=headers, body=body) + # support both string and bytes type response.data response_body = ( response.data.decode("utf-8") if hasattr(response.data, "decode")