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

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