Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multipart uploads: Hack to support gsutil cp (#1182)
* multipart uploads: Hack to support gsutil cp `gsutil` sends an invalid multipart boundary param, which golang's `mime.ParseMediaType` correctly rejects. However, the real GCS evidently does not reject this, so in order to make `gsutil` work we need to support it. In particular, `gsutil` sends a boundary param that is quoted using single-quotes when it should be using double-quotes. In cases where the param is definitely invalid (so we're guarenteed not to break any valid values), we replace all single-quotes with double-quotes to produce the intended meaning. Upstream bug: GoogleCloudPlatform/gsutil#1466 * Use ` to avoid having to escape --------- Co-authored-by: fsouza <108725+fsouza@users.noreply.github.com>
- Loading branch information