From 67bd78f2e626602d8392482250d4328eb3b1b3a6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 23 Oct 2023 08:21:22 +0200 Subject: All: Make it easier to update the version --- internal/http/http.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/http/http.go') diff --git a/internal/http/http.go b/internal/http/http.go index f3f7563..49e5f4f 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -12,6 +12,7 @@ import ( "time" "github.com/go-errors/errors" + "github.com/eduvpn/eduvpn-common/internal/version" ) // UserAgent is the user agent that is used for requests @@ -247,6 +248,6 @@ func (e *StatusError) Error() string { } // RegisterAgent registers the user agent for client and version -func RegisterAgent(client string, version string) { - UserAgent = fmt.Sprintf("%s/%s %s", client, version, "eduvpn-common/1.1.2") +func RegisterAgent(client string, verApp string) { + UserAgent = fmt.Sprintf("%s/%s eduvpn-common/%s", client, verApp, version.Version) } -- cgit v1.2.3