Skip to content

Commit dbff98d

Browse files
committed
when uploading the file, do not parse the response
1 parent 629de08 commit dbff98d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/slack/web/api/helpers/files.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def files_upload_v2(options = {})
4343
upload_url = get_upload_url_response[:upload_url]
4444
file_id = get_upload_url_response[:file_id]
4545

46-
# 2. upload the file
47-
post(upload_url, content)
46+
# 2. upload the file and do not process the return body
47+
post(upload_url, content, false)
4848

4949
# 3. complete the upload
5050
complete_upload_request_params = options.slice(:channels, :initial_comment, :thread_ts)

0 commit comments

Comments
 (0)