Merge pull request #4053 from thaJeztah/2.8_backport_set-content-type-client-readfrom

This commit is contained in:
Milos Gajdos 2023-09-14 20:32:54 +01:00 committed by GitHub
commit da05539ad3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,8 @@ func (hbu *httpBlobUpload) ReadFrom(r io.Reader) (n int64, err error) {
}
defer req.Body.Close()
req.Header.Set("Content-Type", "application/octet-stream")
resp, err := hbu.client.Do(req)
if err != nil {
return 0, err