mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-03 00:02:48 -04:00
Explicitly pass reason_phrase
to save_response
in test adapter. (#1445)
Fixes #1444
This commit is contained in:
parent
43d6797770
commit
89b1fe3da9
@ -283,7 +283,11 @@ module Faraday
|
|||||||
else
|
else
|
||||||
stub.block.call(env, meta)
|
stub.block.call(env, meta)
|
||||||
end
|
end
|
||||||
save_response(env, status, body, headers)
|
|
||||||
|
# We need to explicitly pass `reason_phrase = nil` here to avoid keyword args conflicts.
|
||||||
|
# See https://github.com/lostisland/faraday/issues/1444
|
||||||
|
# TODO: remove `nil` explicit reason_phrase once Ruby 3.0 becomes minimum req. version
|
||||||
|
save_response(env, status, body, headers, nil)
|
||||||
|
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user