Permalink
Browse files

Parens

  • Loading branch information...
1 parent a3299c8 commit 187462ec07e95a6b0b165775adbf292b951cc076 @xdissent xdissent committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http/client.rb
View
@@ -82,7 +82,7 @@ def perform(request, options)
end
response = Http::Response.new(parser.status_code, parser.http_version, parser.headers) do
- if !parser.finished? || @body_remaining and @body_remaining > 0
+ if !parser.finished? || (@body_remaining && @body_remaining > 0)
chunk = parser.chunk || begin
parser << socket.readpartial(BUFFER_SIZE)
parser.chunk || ""

0 comments on commit 187462e

Please sign in to comment.