From 7889b2df359b10a9fe1e319cfb0db03138d1a1a2 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 15 Nov 2012 10:28:17 +0000 Subject: A HTTP-body might be legitimately empty --- lib/custodian/webfetch.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/custodian/webfetch.rb b/lib/custodian/webfetch.rb index 5c04b31..0b5f9c6 100755 --- a/lib/custodian/webfetch.rb +++ b/lib/custodian/webfetch.rb @@ -59,10 +59,11 @@ class WebFetch # - # If both files are size zero then we clearly failed. + # If the header was empty then we're a failure. # - if ( ( File.size( body ) == 0 ) || - ( File.size( head ) == 0 ) ) + # (A body might be legitimately empty.) + # + if ( File.size( head ) == 0 ) # # Cleanup -- cgit v1.2.1