mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-05 00:05:35 -04:00
use conn local var
This commit is contained in:
parent
5ca8630d9b
commit
a8295c2c4a
@ -116,7 +116,7 @@ conn = Faraday.new(
|
||||
headers: {'Content-Type' => 'application/json'}
|
||||
)
|
||||
|
||||
resp = Faraday.get('search') do |req|
|
||||
resp = conn.get('search') do |req|
|
||||
req.params['limit'] = 100
|
||||
req.body = {query: 'salmon'}.to_json
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user