Skip to content

Commit

Permalink
Update s3gof3r.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueCarry authored Jul 10, 2018
1 parent 911afd6 commit 259ed5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions s3gof3r.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ func (b *Bucket) GetReader(path string, c *Config) (r io.ReadCloser, h http.Head
if err != nil {
return nil, nil, err
}

if len(u.Path) > 0 && u.Path[0] == "/"[0] { // If path started as /, we actually need // .
u.Path = "/" + u.Path
}

return newGetter(*u, c, b)
}

Expand Down

0 comments on commit 259ed5a

Please sign in to comment.