Skip to content

Commit 406d6ad

Browse files
committed
♻️ Synced dbin 📦 <-- utility.go: remove import ⌚
1 parent 8eec05d commit 406d6ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

utility.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"net/http"
88
"os"
99
"path/filepath"
10-
"strconv"
1110
"strings"
1211
"time"
1312

@@ -389,7 +388,7 @@ func accessCachedOrFetch(url, filename string, cfg *config, syncInterval time.Du
389388
}
390389
req.Header.Set("Cache-Control", "no-cache, no-store, must-revalidate")
391390
req.Header.Set("Pragma", "no-cache")
392-
req.Header.Set("dbin", strconv.FormatFloat(version, 'f', -1, 32))
391+
req.Header.Set("User-Agent", fmt.Sprintf("dbin/%.1f", version))
393392
client := &http.Client{}
394393
response, err := client.Do(req)
395394
if err != nil {

0 commit comments

Comments
 (0)