Skip to content

Commit

Permalink
request: fix Content-Disposition header in Send
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/go-ipfs-http-client@b7db17c
  • Loading branch information
magik6k committed Feb 21, 2019
1 parent 19d91fb commit cc9968d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/httpapi/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (r *Request) Send(c *http.Client) (*Response, error) {

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

resp, err := c.Do(req)
Expand Down

0 comments on commit cc9968d

Please sign in to comment.