about summary refs log tree commit homepage
path: root/lib/mogilefs/paths_size.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-31 01:56:36 +0000
committerEric Wong <e@80x24.org>2017-01-31 01:56:36 +0000
commit464d874a17a958407d769164bd7683b9f6db38c4 (patch)
treed98a52cfc086125acf7af4a391c05d54f76f85f4 /lib/mogilefs/paths_size.rb
parenta251cba43a0c24a7aa04b1baf3421ba6f7bf6cda (diff)
downloadmogilefs-client-464d874a17a958407d769164bd7683b9f6db38c4.tar.gz
This should reduce the amount of garbage we produce and
keep the process leaner and meaner.
Diffstat (limited to 'lib/mogilefs/paths_size.rb')
-rw-r--r--lib/mogilefs/paths_size.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/paths_size.rb b/lib/mogilefs/paths_size.rb
index ba61f9e..0aa676d 100644
--- a/lib/mogilefs/paths_size.rb
+++ b/lib/mogilefs/paths_size.rb
@@ -10,7 +10,7 @@ module MogileFS::PathsSize
       begin
         case r = Net::HTTP.start(uri.host, uri.port) { |x| x.head(uri.path) }
         when Net::HTTPOK
-          return r["Content-Length"].to_i
+          return r['Content-Length'.freeze].to_i
         else
           errors[path] = r
         end