Skip to content

Commit 927531d

Browse files
Merge pull request #24 from cortex-cms/bugfix/EM-835-Extraneous-Chars-Breaking-URLs
EM-835: Add encoding to Faraday
2 parents ef5e006 + ffc37de commit 927531d

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)