From 97cd5ec837ef7eed630a4f191e904a162c6a808d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 30 Apr 2018 15:15:04 +0200 Subject: [PATCH] Move a comment to the relevant line --- lib/remote_storage/s3_rest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote_storage/s3_rest.rb b/lib/remote_storage/s3_rest.rb index 5f3db7d..48b6cb4 100644 --- a/lib/remote_storage/s3_rest.rb +++ b/lib/remote_storage/s3_rest.rb @@ -23,9 +23,9 @@ module RemoteStorage end end - # S3 does not return a Last-Modified response header on PUTs def do_put_request_and_return_etag_and_last_modified(url, data, content_type) res = do_put_request(url, data, content_type) + # S3 does not return a Last-Modified response header on PUTs head_res = do_head_request(url) return [res.headers[:etag].delete('"'), timestamp_for(head_res.headers[:last_modified])]