Browse Source

fix ErrNotFound

pull/1616/head
Chris Lu 4 years ago
parent
commit
7094492428
  1. 2
      weed/s3api/s3api_bucket_handlers.go

2
weed/s3api/s3api_bucket_handlers.go

@ -164,8 +164,8 @@ func (s3a *S3ApiServer) HeadBucketHandler(w http.ResponseWriter, r *http.Request
bucket, _ := getBucketAndObject(r) bucket, _ := getBucketAndObject(r)
if entry == nil || err != nil {
entry, err := s3a.getEntry(s3a.option.BucketsPath, bucket) entry, err := s3a.getEntry(s3a.option.BucketsPath, bucket)
if entry == nil || err == filer_pb.ErrNotFound {
writeErrorResponse(w, s3err.ErrNoSuchBucket, r.URL) writeErrorResponse(w, s3err.ErrNoSuchBucket, r.URL)
return return
} }

Loading…
Cancel
Save