lib/httpx/plugins/stream.rb in httpx-0.17.0 vs lib/httpx/plugins/stream.rb in httpx-0.18.0
- old
+ new
@@ -7,10 +7,10 @@
@session = session
@connections = connections
end
def each(&block)
- return enum_for(__method__) unless block_given?
+ return enum_for(__method__) unless block
raise Error, "response already streamed" if @response
@request.stream = self