cmd/cloudflared/updater: fix dropped error

This commit is contained in:
Lars Lehtonen 2023-08-24 06:40:05 -07:00
parent b474778cf1
commit 0a4d337cd3
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ func (s *WorkersService) Check() (CheckResult, error) {
}
req, err := http.NewRequest(http.MethodGet, s.url, nil)
if err != nil {
return nil, err
}
q := req.URL.Query()
q.Add(OSKeyName, runtime.GOOS)
q.Add(ArchitectureKeyName, runtime.GOARCH)