mirror of
https://github.com/lostisland/faraday.git
synced 2025-12-07 00:01:45 -05:00
typhoeus 0.3.2+ handles PUT without bodies too
This commit is contained in:
parent
5159a64db2
commit
489abd66c1
@ -96,11 +96,8 @@ else
|
|||||||
assert_equal %({"first"=>"zack"}), resp.body
|
assert_equal %({"first"=>"zack"}), resp.body
|
||||||
end
|
end
|
||||||
|
|
||||||
# https://github.com/dbalatero/typhoeus/issues/84
|
define_method "test_#{adapter}_PUT_retrieves_the_response_headers" do
|
||||||
if ENV['FORCE'] || !%w[Faraday::Adapter::Typhoeus].include?(adapter.to_s)
|
assert_match(/text\/html/, create_connection(adapter).put('echo_name').headers['content-type'])
|
||||||
define_method "test_#{adapter}_PUT_retrieves_the_response_headers" do
|
|
||||||
assert_match(/text\/html/, create_connection(adapter).put('echo_name').headers['content-type'])
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# https://github.com/toland/patron/issues/34
|
# https://github.com/toland/patron/issues/34
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user