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

Commit

Permalink
request: fix Content-Disposition header in Send
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Feb 21, 2019
1 parent 4a87232 commit b7db17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 b7db17c

Please sign in to comment.