We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f4210 commit 2338b38Copy full SHA for 2338b38
lib/slack/web/faraday/connection.rb
@@ -26,7 +26,7 @@ def connection
26
connection.request :url_encoded
27
connection.use ::Slack::Web::Faraday::Response::RaiseError
28
connection.response :mashify, mash_class: Slack::Messages::Message
29
- connection.response :json, content_type: /\b*$/
+ connection.response :json, content_type: /\bjson$/
30
connection.use ::Slack::Web::Faraday::Response::WrapError
31
connection.response :logger, logger if logger
32
connection.adapter adapter
lib/slack/web/faraday/response/raise_error.rb
@@ -10,6 +10,7 @@ def on_complete(env)
10
return unless env.success?
11
12
body = env.body
13
+ return if env.success? && body.is_a?(String)
14
return unless body
15
return if body['ok']
16
0 commit comments