Skip to content

Commit

Permalink
Merge pull request #35 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 0.5.5
  • Loading branch information
andyone authored Jan 17, 2025
2 parents 63e2a63 + 02e81db commit db04127
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.8

require (
github.com/essentialkaos/check v1.4.1
github.com/essentialkaos/ek/v13 v13.15.5
github.com/essentialkaos/ek/v13 v13.15.6
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/essentialkaos/check v1.4.1 h1:SuxXzrbokPGTPWxGRnzy0hXvtb44mtVrdNxgPa1s4c8=
github.com/essentialkaos/check v1.4.1/go.mod h1:xQOYwFvnxfVZyt5Qvjoa1SxcRqu5VyP77pgALr3iu+M=
github.com/essentialkaos/ek/v13 v13.15.5 h1:p/YZz5r3lPyy841e5akERQMWGnFGgoXgls1bBSnDJL0=
github.com/essentialkaos/ek/v13 v13.15.5/go.mod h1:YAkv7Mt856nJUQmi+/w1xxXwAR9C2/zQRJ9WNi2kOnE=
github.com/essentialkaos/ek/v13 v13.15.6 h1:lWsCi7+irGi13beiY/T5P1W/iU1VFOEmOSp0Nt6TIQQ=
github.com/essentialkaos/ek/v13 v13.15.6/go.mod h1:YAkv7Mt856nJUQmi+/w1xxXwAR9C2/zQRJ9WNi2kOnE=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
Expand Down
7 changes: 5 additions & 2 deletions pachca.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,12 +488,15 @@ func NewClient(token string) (*Client, error) {
return nil, err
}

e := &req.Engine{}
e.SetUserAgent("EK|Pachca.go", "1")

return &Client{
BatchSize: 50,
MaxFileSize: 10 * 1024 * 1024, // 10 MB

token: token,
engine: &req.Engine{},
engine: e,
}, nil
}

Expand Down Expand Up @@ -541,7 +544,7 @@ func (c *Client) SetUserAgent(app, ver string) {
return
}

c.engine.SetUserAgent(app, ver, "EK-Pachca.go/1")
c.engine.SetUserAgent(app, ver, "EK|Pachca.go/1")
}

// Engine returns pointer to request engine used for all HTTP requests to API
Expand Down

0 comments on commit db04127

Please sign in to comment.