We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7232103 commit 9cf6e2bCopy full SHA for 9cf6e2b
installer/scraper.go
@@ -4,12 +4,14 @@ import (
4
"encoding/base64"
5
"encoding/json"
6
"fmt"
7
- "github.com/metafates/mangal/filesystem"
8
- "github.com/metafates/mangal/where"
9
"io"
10
"net/http"
11
"os"
12
"path/filepath"
+
+ "github.com/metafates/mangal/filesystem"
13
+ "github.com/metafates/mangal/util"
14
+ "github.com/metafates/mangal/where"
15
)
16
17
type Scraper struct {
@@ -42,6 +44,8 @@ func (s *Scraper) download() error {
42
44
return err
43
45
}
46
47
+ defer util.Ignore(res.Body.Close)
48
49
if res.StatusCode != http.StatusOK {
50
return fmt.Errorf("failed to get %s: %s", s.URL, res.Status)
51
0 commit comments