Skip to content

Commit

Permalink
Replace "+" in object queries with "%2B"
Browse files Browse the repository at this point in the history
This fixes issue AdRoll#259 in which objects with "+" in the
object key cannot be retrieved.
  • Loading branch information
Donovan Kolbly committed Nov 6, 2014
1 parent d4bb696 commit 6006405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6006405

Please sign in to comment.