Skip to content

Commit ffc37de

Browse files
committed
Add encoding to Faraday
1 parent ef5e006 commit ffc37de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/cortex/connection.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def connection
2020
conn.use Cortex::FaradayMiddleware
2121
conn.request :oauth2, access_token.is_a?(OAuth2::AccessToken) ? access_token.token : access_token
2222
conn.request :json
23+
conn.request :url_encoded
2324
conn.response :json, :content_type => /\bjson$/
2425
conn.adapter Faraday.default_adapter
2526
end

0 commit comments

Comments
 (0)