Compare commits

...

2 Commits

Author SHA1 Message Date
Matt
b3b922949d
Version bump to 2.5.2 2022-08-11 13:48:46 +01:00
Matt
89b1fe3da9
Explicitly pass reason_phrase to save_response in test adapter. (#1445)
Fixes #1444
2022-08-11 13:48:13 +01:00
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Faraday module Faraday
VERSION = '2.5.1' VERSION = '2.5.2'
end end