Use http.DefaultClient for NWS API requests
This commit is contained in:
parent
066cbd78bf
commit
0b9df25794
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue