mirror of
https://codeberg.org/scip/kleingebaeck.git
synced 2026-03-12 02:21:45 +01:00
minor critics corrected
This commit is contained in:
committed by
T.v.Dein
parent
eee0167574
commit
5956a68e72
2
fetch.go
2
fetch.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user