Skip to content

Commit 349154e

Browse files
authored
Merge pull request ipfs#167 from MichaelMure/patch-1
Fix Content-Disposition HTTP header
2 parents b87a511 + 5034077 commit 349154e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

request.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (r *Request) Send(c *http.Client) (*Response, error) {
120120

121121
if fr, ok := r.Body.(*files.MultiFileReader); ok {
122122
req.Header.Set("Content-Type", "multipart/form-data; boundary="+fr.Boundary())
123-
req.Header.Set("Content-Disposition", "form-data: name=\"files\"")
123+
req.Header.Set("Content-Disposition", "form-data; name=\"files\"")
124124
}
125125

126126
resp, err := c.Do(req)

0 commit comments

Comments
 (0)