lib/httpx/request.rb in httpx-0.0.2 vs lib/httpx/request.rb in httpx-0.0.3
- old
+ new
@@ -190,10 +190,10 @@
case @response.status
when 100
# deallocate
@response = nil
when 417
- @response = ErrorResponse.new("Expectation Failed", 0)
+ @response = @response
return
end
end
when :done
return if @state == :expect