Codebase list golang-github-nlopes-slack / 95c82ba
Merge pull request #164 from dennwc/patch-1 file.upload: fix error handling for multipart Florin Pățan authored 6 years ago GitHub committed 6 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