GoogleCloudPlatform / GoogleCloudPlatform/gsutil
gsutil uses an invalid content-type header
- Dominant language
- Python
- Stars
- 918
- Forks
- 335
- PR merge metrics
- No merged PRs in 30d
Description
When you make a multipart request to copy, gsutil uses
```content-type: multipart/related; boundary='===============8541858631849441928=='``` note the single quotes. This causes parsing errors in some applications, particularly Golang's mime parser.
https://go.dev/play/p/aHwwWh_ASgs
Doing a string replace with double quotes makes it work
Contributor guide
Research direction
Start by reproducing a multipart copy request and inspect the generated Content-Type header, using the linked Go parser example to confirm the parsing failure. Locate the code that assembles the multipart boundary and update the quoting so the header is accepted by affected parsers; done means the request uses valid quoting and the copy succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100