File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
google/cloud/storage/_media/requests Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -696,23 +696,6 @@ def _add_decoder(response_raw, checksum):
696696 return checksum
697697
698698
699- # def _get_decoded_content(raw_content):
700- # """Get the decoded content from a raw response.
701-
702- # Args:
703- # raw_content (bytes): The raw bytes from the response.
704-
705- # Returns:
706- # bytes: The decoded bytes from ``raw_content``.
707- # """
708- # # If the content is gzip-encoded, decode it.
709- # if raw_content.headers.get("content-encoding", "").lower() == "gzip":
710- # return raw_content.read(decode_content=True)
711- # else:
712- # return raw_content.read() # type: ignore
713-
714-
715-
716699class _GzipDecoder (urllib3 .response .GzipDecoder ):
717700 """Custom subclass of ``urllib3`` decoder for ``gzip``-ed bytes.
718701
You can’t perform that action at this time.
0 commit comments