vendor update minio-go-legacy

This commit is contained in:
Krishna Srinivas
2015-10-19 15:09:44 -07:00
parent 7f7e4cc330
commit 2a3b201457
3 changed files with 14 additions and 6 deletions
+10 -2
View File
@@ -420,7 +420,7 @@ func (a apiCore) deleteBucket(bucket string) error {
return err
}
if resp != nil {
if resp.StatusCode != http.StatusOK {
if resp.StatusCode != http.StatusNoContent {
var errorResponse ErrorResponse
switch resp.StatusCode {
case http.StatusNotFound:
@@ -705,7 +705,7 @@ func (a apiCore) deleteObject(bucket, object string) error {
return err
}
if resp != nil {
if resp.StatusCode != http.StatusOK {
if resp.StatusCode != http.StatusNoContent {
var errorResponse ErrorResponse
switch resp.StatusCode {
case http.StatusNotFound:
@@ -724,6 +724,14 @@ func (a apiCore) deleteObject(bucket, object string) error {
RequestID: resp.Header.Get("x-amz-request-id"),
HostID: resp.Header.Get("x-amz-id-2"),
}
case http.StatusConflict:
errorResponse = ErrorResponse{
Code: "Conflict",
Message: "Bucket not empty",
Resource: separator + bucket,
RequestID: resp.Header.Get("x-amz-request-id"),
HostID: resp.Header.Get("x-amz-id-2"),
}
default:
errorResponse = ErrorResponse{
Code: resp.Status,
+2 -2
View File
@@ -77,7 +77,7 @@ func (h bucketHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNotFound)
default:
h.resource = ""
w.WriteHeader(http.StatusOK)
w.WriteHeader(http.StatusNoContent)
}
}
}
@@ -154,6 +154,6 @@ func (h objectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
h.resource = ""
h.data = nil
w.WriteHeader(http.StatusOK)
w.WriteHeader(http.StatusNoContent)
}
}
+2 -2
View File
@@ -34,8 +34,8 @@
},
{
"path": "github.com/minio/minio-go-legacy",
"revision": "0e894de484c4e4ff39f36320b7153b7f57d395b9",
"revisionTime": "2015-10-13T17:08:05-07:00"
"revision": "58eb2eb70a67819d2ea5a9e2a8f6c10bee164efc",
"revisionTime": "2015-10-17T10:22:58-07:00"
},
{
"path": "github.com/minio/minio-xl/pkg/probe",