Skip to content

Commit

Permalink
Merge pull request #4053 from thaJeztah/2.8_backport_set-content-type…
Browse files Browse the repository at this point in the history
…-client-readfrom
  • Loading branch information
milosgajdos committed Sep 14, 2023
2 parents 0fd0b73 + cb121c3 commit da05539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions registry/client/blob_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da05539

Please sign in to comment.