no more @on_response

This commit is contained in:
HoneyryderChuck 2018-01-14 20:38:26 +00:00
parent 6319d83b81
commit 60d0b802dd
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ module HTTPX
else
response = ErrorResponse.new("socks error: #{status}", 0)
while (req, _ = @pending.shift)
@on_response.call(req, response)
emit(:response, req, response)
end
end
end

View File

@ -90,7 +90,7 @@ module HTTPX
def on_error_response(error)
response = ErrorResponse.new(error, 0)
while (req, _ = @pending.shift)
@on_response.call(req, response)
emit(:response, req, response)
end
end
end