From f0d6e6c2c4bf8c9abd88c374539caa5249d208db Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 5 Mar 2024 16:59:37 +0100 Subject: [PATCH] Add TODO note --- lib/remote_storage/s3.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/remote_storage/s3.rb b/lib/remote_storage/s3.rb index b094fd4..8c17788 100644 --- a/lib/remote_storage/s3.rb +++ b/lib/remote_storage/s3.rb @@ -30,6 +30,8 @@ module RemoteStorage headers = { "Content-Type" => content_type } auth_headers = auth_headers_for("PUT", url, headers, data) + # TODO check if put was successful, e.g. it's returning a 413 directly + # if the back-end does, too (missing CORS headers in that case) res = RestClient.put(url, data, headers.merge(auth_headers)) return [