Skip to content

Commit

Permalink
Dev (#5)
Browse files Browse the repository at this point in the history
* fix lifecycle

* fix createDate

* fix
  • Loading branch information
lewzylu authored Apr 27, 2018
1 parent 030ca74 commit e20c24a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,5 @@ func (s *BucketService) Head(ctx context.Context) (*Response, error) {
type Bucket struct {
Name string
Region string `xml:"Location,omitempty"`
CreateDate string `xml:",omitempty"`
CreationDate string `xml:",omitempty"`
}
2 changes: 1 addition & 1 deletion object.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (s *ObjectService) Copy(ctx context.Context, name, sourceURL string, opt *O
if opt.ObjectCopyHeaderOptions == nil {
opt.ObjectCopyHeaderOptions = new(ObjectCopyHeaderOptions)
}
opt.XCosCopySource = sourceURL
opt.XCosCopySource = encodeURIComponent(sourceURL)

sendOpt := sendOptions{
baseURL: s.client.BaseURL.BucketURL,
Expand Down
8 changes: 4 additions & 4 deletions service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ func TestServiceService_Get(t *testing.T) {
<Bucket>
<Name>huadong-1253846586</Name>
<Location>ap-shanghai</Location>
<CreateDate>2017-06-16T13:08:28Z</CreateDate>
<CreationDate>2017-06-16T13:08:28Z</CreationDate>
</Bucket>
<Bucket>
<Name>huanan-1253846586</Name>
<Location>ap-guangzhou</Location>
<CreateDate>2017-06-10T09:00:07Z</CreateDate>
<CreationDate>2017-06-10T09:00:07Z</CreationDate>
</Bucket>
</Buckets>
</ListAllMyBucketsResult>`)
Expand All @@ -50,12 +50,12 @@ func TestServiceService_Get(t *testing.T) {
{
Name: "huadong-1253846586",
Region: "ap-shanghai",
CreateDate: "2017-06-16T13:08:28Z",
CreationDate: "2017-06-16T13:08:28Z",
},
{
Name: "huanan-1253846586",
Region: "ap-guangzhou",
CreateDate: "2017-06-10T09:00:07Z",
CreationDate: "2017-06-10T09:00:07Z",
},
},
}
Expand Down

0 comments on commit e20c24a

Please sign in to comment.