Skip to content

Commit

Permalink
Revert "Merge pull request bblimke#178 from HendrikW/master"
Browse files Browse the repository at this point in the history
This reverts commit 36aff46, reversing
changes made to 1e61a8c.
  • Loading branch information
bblimke committed Jul 23, 2012
1 parent a240801 commit 574cd18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/webmock/http_lib_adapters/net_http.rb
Expand Up @@ -87,9 +87,10 @@ def request_with_webmock(request, body = nil, &block)
end
response = if (started? && !WebMock::Config.instance.net_http_connect_on_start) || !started?
@started = false #otherwise start_with_connect wouldn't execute and connect
start_with_connect
response = request_without_webmock(request, nil)
after_request.call(response)
start_with_connect {
response = request_without_webmock(request, nil)
after_request.call(response)
}
else
response = request_without_webmock(request, nil)
after_request.call(response)
Expand Down

0 comments on commit 574cd18

Please sign in to comment.