From 709f63555dbcb77a0bf3ef4343a7c7ba399d3af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Wed, 9 May 2018 15:55:00 +0200 Subject: [PATCH] Rewrite to avoid long lines --- lib/remote_storage/s3.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/remote_storage/s3.rb b/lib/remote_storage/s3.rb index b3929a6..f2346d4 100644 --- a/lib/remote_storage/s3.rb +++ b/lib/remote_storage/s3.rb @@ -18,8 +18,10 @@ module RemoteStorage def do_put_request(url, data, content_type) deal_with_unauthorized_requests do md5 = Digest::MD5.base64digest(data) - authorization_headers = authorization_headers_for("PUT", url, md5, content_type) - RestClient.put(url, data, authorization_headers.merge({ "Content-Type" => content_type, "Content-Md5" => md5})) + authorization_headers = authorization_headers_for( + "PUT", url, md5, content_type + ).merge({ "Content-Type" => content_type, "Content-Md5" => md5 }) + RestClient.put(url, data, authorization_headers) end end