Browse Source

dont't set destination when copy object

Signed-off-by: changlin.shi <changlin.shi@ly.com>
pull/4040/head
changlin.shi 2 years ago
parent
commit
2769a96f13
  1. 3
      weed/s3api/s3api_object_copy_handlers.go

3
weed/s3api/s3api_object_copy_handlers.go

@ -98,8 +98,7 @@ func (s3a *S3ApiServer) CopyObjectHandler(w http.ResponseWriter, r *http.Request
return
}
glog.V(2).Infof("copy from %s to %s", srcUrl, dstUrl)
destination := fmt.Sprintf("%s/%s%s", s3a.option.BucketsPath, dstBucket, dstObject)
etag, errCode := s3a.putToFiler(r, dstUrl, resp.Body, destination)
etag, errCode := s3a.putToFiler(r, dstUrl, resp.Body, "")
if errCode != s3err.ErrNone {
s3err.WriteErrorResponse(w, r, errCode)

Loading…
Cancel
Save