From c95fcf2a56bfc6eceb191826470ed3c4d0ca4a63 Mon Sep 17 00:00:00 2001 From: Giang Bui Date: Fri, 25 Jan 2019 11:58:26 -0600 Subject: [PATCH] fix(url): decode url if needed --- handlers/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/handler.go b/handlers/handler.go index ea910b5..f840b87 100644 --- a/handlers/handler.go +++ b/handlers/handler.go @@ -29,7 +29,7 @@ func getIndexServiceInfo() (*IndexdInfo, error) { // The fuction does several things. It first downloads the object from // S3, computes size and hashes, and update indexd func IndexS3Object(s3objectURL string) { - + s3objectURL, _ = url.QueryUnescape(s3objectURL) u, err := url.Parse(s3objectURL) if err != nil { log.Printf("Wrong url format %s\n", s3objectURL)