minor critics corrected

This commit is contained in:
2024-04-26 11:21:50 +02:00
committed by T.v.Dein
parent eee0167574
commit 5956a68e72
5 changed files with 18 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ func NewFetcher(conf *Config) (*Fetcher, error) {
}
func (f *Fetcher) Get(uri string) (io.ReadCloser, error) {
req, err := http.NewRequest(http.MethodGet, uri, nil)
req, err := http.NewRequest(http.MethodGet, uri, http.NoBody)
if err != nil {
return nil, fmt.Errorf("failed to create a new HTTP request obj: %w", err)
}