Skip to content
Permalink
Browse files
fix: fall back to 'charset' of 'content_type' in 'download_as_text' (#…
…326)

Explicit 'encoding' overrides the fallback.

Use the 'charset' param of 'content_type', rather than 'content_encoding',
which isn't going to be a Unicode -> bytes encoding.

Closes #319.

Also, rewrap long param descriptions for in-source readability.
  • Loading branch information
tseaver committed Nov 30, 2020
1 parent 6a0b8a7 commit 63ff23387f5873c609490be8e58d69ba34a10a5e
Showing with 687 additions and 568 deletions.
  1. +562 −516 google/cloud/storage/blob.py
  2. +125 −52 tests/unit/test_blob.py

0 comments on commit 63ff233

Please sign in to comment.