forked from TrueCloudLab/distribution
Merge pull request #4053 from thaJeztah/2.8_backport_set-content-type-client-readfrom
This commit is contained in:
commit
da05539ad3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue