reset response when resetting to idle in the request

This commit is contained in:
HoneyryderChuck 2018-01-05 23:22:32 +00:00
parent ba4f6d9b01
commit 61c82a0e1d

View File

@ -165,7 +165,7 @@ module HTTPX
def transition(nextstate)
case nextstate
when :idle
@response = nil
when :headers
return unless @state == :idle
when :body