Browse Source

fix url parsing

pull/7481/head
chrislu 3 weeks ago
parent
commit
2b62e6229c
  1. 3
      weed/s3api/s3api_object_handlers.go

3
weed/s3api/s3api_object_handlers.go

@ -760,7 +760,8 @@ func (s3a *S3ApiServer) createLookupFileIdFunction() func(context.Context, strin
} }
if locs, found := resp.LocationsMap[vid]; found { if locs, found := resp.LocationsMap[vid]; found {
for _, loc := range locs.Locations { for _, loc := range locs.Locations {
urls = append(urls, loc.Url)
// Ensure URL has http:// scheme prefix for proper URL parsing
urls = append(urls, "http://"+loc.Url)
} }
} }
return nil return nil

Loading…
Cancel
Save