Package list golang-github-nlopes-slack / f78e7e5
file.upload: fix error handling for multipart handle error correctly in postWithMultipartResponse Denys Smirnov authored 4 years ago GitHub committed 4 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9191
9292 func postWithMultipartResponse(path, filepath, fieldname string, values url.Values, intf interface{}, debug bool) error {
9393 req, err := fileUploadReq(SLACK_API+path, filepath, fieldname, values)
94 if err != nil {
95 return err
96 }
9497 resp, err := HTTPClient.Do(req)
9598 if err != nil {
9699 return err