Add user agent for ACME
This commit is contained in:
parent
6d07729c55
commit
ae7c947ba5
6 changed files with 11 additions and 5 deletions
2
vendor/github.com/xenolf/lego/acme/http.go
generated
vendored
2
vendor/github.com/xenolf/lego/acme/http.go
generated
vendored
|
@ -155,6 +155,6 @@ func postJSON(j *jws, uri string, reqBody, respBody interface{}) (http.Header, e
|
|||
|
||||
// userAgent builds and returns the User-Agent string to use in requests.
|
||||
func userAgent() string {
|
||||
ua := fmt.Sprintf("%s (%s; %s) %s %s", defaultGoUserAgent, runtime.GOOS, runtime.GOARCH, ourUserAgent, UserAgent)
|
||||
ua := fmt.Sprintf("%s %s (%s; %s) %s", UserAgent, ourUserAgent, runtime.GOOS, runtime.GOARCH, defaultGoUserAgent)
|
||||
return strings.TrimSpace(ua)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue