Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
fall back to application/octet-stream if Content-Type is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
keks committed Dec 11, 2017
1 parent 648e53b commit d398783
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions multipartfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func NewFileFromPart(part *multipart.Part) (File, error) {
Target: string(out),
name: f.FileName(),
}, nil
case "": // default to application/octet-stream
fallthrough
case applicationFile:
return &ReaderFile{
reader: part,
Expand Down

0 comments on commit d398783

Please sign in to comment.