Skip to content

Commit

Permalink
Merge pull request #7 from uc-cdis/fix/url
Browse files Browse the repository at this point in the history
fix(url): decode url if needed
  • Loading branch information
giangbui authored Jan 25, 2019
2 parents 8f1d6a3 + c95fcf2 commit e1c60ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e1c60ea

Please sign in to comment.