aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net/http/response.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http/response.rb')
-rw-r--r--lib/net/http/response.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/net/http/response.rb b/lib/net/http/response.rb
index 253c5cbe98..126c22160d 100644
--- a/lib/net/http/response.rb
+++ b/lib/net/http/response.rb
@@ -359,6 +359,7 @@ class Net::HTTPResponse
# Finishes the inflate stream.
def finish
+ return if @inflate.total_in == 0
@inflate.finish
end