Skip to content

Commit

Permalink
feat: add version
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Nov 8, 2023
1 parent 844ac63 commit 12c3902
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion execdl.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ import (
"github.com/adrg/xdg"
)

var (
version = "dev"
)

const (
cacheVersion = "v1"
hexDigestPlaceholder = "_"
Expand Down Expand Up @@ -295,7 +299,7 @@ The %s environment variable controls output verbosity; false decreases, true inc
rc = 1
return
}
req.Header.Set("User-Agent", prog) // TODO version
req.Header.Set("User-Agent", prog+"/"+version)
// TODO if no checksum, do conditional get: If-None-Match, If-Modified-Since?

resp, err := hc.Do(req)
Expand Down

0 comments on commit 12c3902

Please sign in to comment.