Update mc to new changes in minio-go related to time formatting

This commit is contained in:
Harshavardhana
2015-05-25 20:16:46 -07:00
parent 76746687c0
commit e6e563d599
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
},
{
"ImportPath": "github.com/minio/minio-go",
"Rev": "eea7789129cfc58972977dd19c4729e2e559c8fc"
"Rev": "c68bb5b2c7a043c0769c5ef902e1a1c1572d52a3"
},
{
"ImportPath": "github.com/minio/minio/pkg/iodine",
+4
View File
@@ -222,6 +222,10 @@ func TestURLEncoding(t *testing.T) {
name: ">123>3123123",
encodedName: "%3E123%3E3123123",
},
{
name: "test 1 2.txt",
encodedName: "test%201%202.txt",
},
}
for _, u := range want {
+2 -2
View File
@@ -437,7 +437,7 @@ func (a *lowLevelAPI) getObject(bucket, object string, offset, length uint64) (i
if md5sum == "" {
return nil, nil, errors.New("missing ETag")
}
date, err := time.Parse(time.RFC1123, resp.Header.Get("Last-Modified"))
date, err := time.Parse(http.TimeFormat, resp.Header.Get("Last-Modified"))
if err != nil {
return nil, nil, err
}
@@ -489,7 +489,7 @@ func (a *lowLevelAPI) headObject(bucket, object string) (*ObjectMetadata, error)
if err != nil {
return nil, err
}
date, err := time.Parse(time.RFC1123, resp.Header.Get("Last-Modified"))
date, err := time.Parse(http.TimeFormat, resp.Header.Get("Last-Modified"))
if err != nil {
return nil, err
}