From fb07320a12f83ffaf80bf3c0aca94a720f865201 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 25 May 2024 02:31:40 +0200 Subject: build: just use nix version as internal version --- internal/fetcher/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/fetcher') diff --git a/internal/fetcher/http.go b/internal/fetcher/http.go index 675c3b3..1a47f11 100644 --- a/internal/fetcher/http.go +++ b/internal/fetcher/http.go @@ -47,7 +47,7 @@ func fetchFileIfNeeded( return } - req.Header.Set("User-Agent", fmt.Sprintf("Searchix %s", config.ShortSHA)) + req.Header.Set("User-Agent", fmt.Sprintf("Searchix %s", config.Version)) if ifModifiedSince != "" { req.Header.Set("If-Modified-Since", ifModifiedSince) -- cgit 1.4.1