diff options
| author | Christine Dodrill <me@christine.website> | 2019-06-04 13:35:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-04 13:35:44 -0400 |
| commit | 654f273baaaba63bf73fd46a65ecd1440c4758fe (patch) | |
| tree | 00db6f9b02cc8f6e8cff51a22819e34b582b9c6b /web/user_agent.go | |
| parent | 7ce978fdecebdf623700fd8c5f882846f1a610ea (diff) | |
| download | x-654f273baaaba63bf73fd46a65ecd1440c4758fe.tar.xz x-654f273baaaba63bf73fd46a65ecd1440c4758fe.zip | |
[minor] move to within.website/x (#14)
* move to within.website/x
* Update user_agent.go
* cmd/within.website: add bot info page
Diffstat (limited to 'web/user_agent.go')
| -rw-r--r-- | web/user_agent.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/user_agent.go b/web/user_agent.go index 99885a4..249f6b7 100644 --- a/web/user_agent.go +++ b/web/user_agent.go @@ -27,7 +27,7 @@ func init() { // GenUserAgent creates a unique User-Agent string for outgoing HTTP requests. func GenUserAgent() string { - return fmt.Sprintf("github.com-Xe-x (%s/%s/%s; %s; +https://github.com/Xe/x/blob/master/web/x.md) Alive (%s; sandflake) Hostname/%s Started (%s)", runtime.Version(), runtime.GOOS, runtime.GOARCH, os.Args[0], startID.String(), hostname, started.Format(time.RFC3339)) + return fmt.Sprintf("github.com-Xe-x (%s/%s/%s; %s; +https://within.website/.x.botinfo) Alive (%s; sandflake) Hostname/%s Started (%s)", runtime.Version(), runtime.GOOS, runtime.GOARCH, os.Args[0], startID.String(), hostname, started.Format(time.RFC3339)) } type userAgentTransport struct { |
