Fix: response content is empty when using cache by yanxurui · Pull Request #1248 · googleapis/google-auth-library-python

@yanxurui requested a review from a team

March 14, 2023 14:23

@yanxurui

chalmerlowe pushed a commit that referenced this pull request

Dec 19, 2025
Using .read() is more robust when working with caching libraries like
aiohttp-client-cache, which may cause .content.read() to return empty
bytes on subsequent reads. .read() ensures the full body is returned.

Fixes #1248

chalmerlowe pushed a commit that referenced this pull request

Dec 19, 2025
Using .read() is more robust when working with caching libraries like
aiohttp-client-cache, which may cause .content.read() to return empty
bytes on subsequent reads. .read() ensures the full body is returned.

Fixes #1248