Skip to content

Commit 08b41bc

Browse files
authored
Merge pull request #732 from Olia-Kremmyda/fix-redirection-error
Redirection using curb fails with HttpClientError: undefined method `http_GET_without_webmock'
2 parents ba69c1d + 357ad6d commit 08b41bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/webmock/http_lib_adapters/curb_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def webmock_follow_location(location)
183183
self.url = location
184184

185185
curb_or_webmock do
186-
send( "http_#{@webmock_method}_without_webmock" )
186+
send( :http, {'method' => @webmock_method} )
187187
end
188188

189189
self.url = first_url

0 commit comments

Comments
 (0)