From 6006405e743a61e6e7386e8a6b020489e0b7c46d Mon Sep 17 00:00:00 2001 From: Donovan Kolbly Date: Thu, 6 Nov 2014 14:33:41 -0600 Subject: [PATCH] Replace "+" in object queries with "%2B" This fixes issue #259 in which objects with "+" in the object key cannot be retrieved. --- s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s3/s3.go b/s3/s3.go index 6d00816c..b14ae429 100644 --- a/s3/s3.go +++ b/s3/s3.go @@ -949,7 +949,7 @@ func partiallyEscapedPath(path string) string { } } } - return strings.Join(pathEscapedAndSplit, "/") + return strings.Replace(strings.Join(pathEscapedAndSplit, "/"), "+", "%2B", -1) } // prepare sets up req to be delivered to S3.