about summary refs log tree commit diff stats
path: root/internal/fetcher/http.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-25 02:31:40 +0200
committerAlan Pearce2024-05-25 02:31:40 +0200
commitfb07320a12f83ffaf80bf3c0aca94a720f865201 (patch)
treefb36a9853c19c1549ba63f2b5c2ca7b0c90a76ff /internal/fetcher/http.go
parent4c4b980bff860dda725253438b499245338161df (diff)
downloadsearchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.tar.lz
searchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.tar.zst
searchix-fb07320a12f83ffaf80bf3c0aca94a720f865201.zip
build: just use nix version as internal version
Diffstat (limited to 'internal/fetcher/http.go')
-rw-r--r--internal/fetcher/http.go2
1 files changed, 1 insertions, 1 deletions
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)