mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
no more @on_response
This commit is contained in:
parent
6319d83b81
commit
60d0b802dd
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user