mirror of
https://github.com/minio/minio.git
synced 2026-11-18 06:58:15 +00:00
Parse response headers in tests
This commit is contained in:
1 parent
f5226737e5
commit
85e547d854
5 files changed
+73
-23
No files matched your search
@@ -88,6 +88,11 @@ func (file *fileDriver) GetObject(w io.Writer, bucket string, object string) (in
|
||||
return 0, drivers.BucketNameInvalid{Bucket: bucket}
|
||||
}
|
||||
|
||||
// check bucket exists
|
||||
if _, err := os.Stat(path.Join(file.root, bucket)); os.IsNotExist(err) {
|
||||
return 0, drivers.BucketNotFound{Bucket: bucket}
|
||||
}
|
||||
|
||||
// validate object
|
||||
if drivers.IsValidObject(object) == false {
|
||||
return 0, drivers.ObjectNameInvalid{Bucket: bucket, Object: object}
|
||||
|
||||
Reference in new issue
Block a user