diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index bf2b8057..a63d392a 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -32,7 +32,7 @@ }, { "ImportPath": "github.com/minio/minio-go", - "Rev": "eea7789129cfc58972977dd19c4729e2e559c8fc" + "Rev": "c68bb5b2c7a043c0769c5ef902e1a1c1572d52a3" }, { "ImportPath": "github.com/minio/minio/pkg/iodine", diff --git a/Godeps/_workspace/src/github.com/minio/minio-go/api_test.go b/Godeps/_workspace/src/github.com/minio/minio-go/api_test.go index ddac697e..3756ae3b 100644 --- a/Godeps/_workspace/src/github.com/minio/minio-go/api_test.go +++ b/Godeps/_workspace/src/github.com/minio/minio-go/api_test.go @@ -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 { diff --git a/Godeps/_workspace/src/github.com/minio/minio-go/low_level_api.go b/Godeps/_workspace/src/github.com/minio/minio-go/low_level_api.go index a269dd2a..6ab6d45e 100644 --- a/Godeps/_workspace/src/github.com/minio/minio-go/low_level_api.go +++ b/Godeps/_workspace/src/github.com/minio/minio-go/low_level_api.go @@ -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 }