Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
domain default 值修改
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonken authored Apr 3, 2018
1 parent a04ca2e commit 6a391fa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cos/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ func New(o *Option) *Client {
conf.SecretID = o.SecretID
conf.SecretKey = o.SecretKey
conf.Region = o.Region
conf.Domain = o.Domain


if o.Domain != "" {
conf.Domain = o.Domain
}

conn := Conn{&http.Client{}, conf}
client.conn = &conn

Expand Down

0 comments on commit 6a391fa

Please sign in to comment.