summaryrefslogtreecommitdiff
path: root/lib/custodian
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-15 10:28:17 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-15 10:28:17 +0000
commit984ea976d1ca308955650ed137118b5d1fbd493b (patch)
treee5a585144e9ba8b0d6d879c44b19a86e229eda60 /lib/custodian
parent15d25eee57c3de396b31a9df2c09a651f4007f8c (diff)
A HTTP-body might be legitimately empty
Diffstat (limited to 'lib/custodian')
-rwxr-xr-xlib/custodian/webfetch.rb7
1 files changed, 4 insertions, 3 deletions
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