diff options
author | Eric Wong <e@80x24.org> | 2016-12-29 07:31:40 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-12-29 07:31:40 +0000 |
commit | 8307157e7381f24b2833d3e3fdf084555265f420 (patch) | |
tree | 504aade3405a391d222b77571b145e8322dc2829 /lib/mogilefs/http_file.rb | |
parent | 6f35eb68c0b45aa64da442022cda82b7df9194c4 (diff) | |
download | mogilefs-client-8307157e7381f24b2833d3e3fdf084555265f420.tar.gz |
None of these are too performance critical, but err on the safe side and avoid allocations whenever possible.
Diffstat (limited to 'lib/mogilefs/http_file.rb')
-rw-r--r-- | lib/mogilefs/http_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mogilefs/http_file.rb b/lib/mogilefs/http_file.rb index caf85ca..c7949a5 100644 --- a/lib/mogilefs/http_file.rb +++ b/lib/mogilefs/http_file.rb @@ -143,7 +143,7 @@ class MogileFS::HTTPFile < StringIO end put = Net::HTTP::Put.new(uri.path) - put["Content-Type"] = "application/octet-stream" + put["Content-Type"] = "application/octet-stream".freeze if md5 = @opts[:content_md5] if md5.respond_to?(:call) md5 = md5.call.strip |