mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
reset response when resetting to idle in the request
This commit is contained in:
parent
ba4f6d9b01
commit
61c82a0e1d
@ -165,7 +165,7 @@ module HTTPX
|
|||||||
def transition(nextstate)
|
def transition(nextstate)
|
||||||
case nextstate
|
case nextstate
|
||||||
when :idle
|
when :idle
|
||||||
|
@response = nil
|
||||||
when :headers
|
when :headers
|
||||||
return unless @state == :idle
|
return unless @state == :idle
|
||||||
when :body
|
when :body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user