Use http.DefaultClient for NWS API requests

This commit is contained in:
amikai 2026-01-29 01:50:04 +08:00
commit 0b9df25794
No known key found for this signature in database
GPG key ID: 884FCD0E8CF183C7

View file

@ -73,7 +73,7 @@ func makeNWSRequest[T any](ctx context.Context, url string) (*T, error) {
req.Header.Set("User-Agent", UserAgent)
req.Header.Set("Accept", "application/geo+json")
client := &http.Client{}
client := http.DefaultClient
resp, err := client.Do(req)
if err != nil {
return nil, fmt.Errorf("failed to make request to %s: %w", url, err)