Compare commits
2 Commits
0385f95474
...
cfc44ae669
Author | SHA1 | Date |
---|---|---|
Felipe M | cfc44ae669 | |
Felipe M | 5c6918e3ce |
6
http.go
6
http.go
|
@ -41,7 +41,7 @@ func doRequest(method string, requestURL string) (*Response, error) {
|
|||
Method: method,
|
||||
URL: parsedURL,
|
||||
Header: map[string][]string{
|
||||
"User-Agent": {"go-mangadex/1.0.0"},
|
||||
"User-Agent": {"go-mangadex/1.0.1"},
|
||||
},
|
||||
}
|
||||
|
||||
|
@ -72,8 +72,8 @@ func doRequest(method string, requestURL string) (*Response, error) {
|
|||
logrus.Tracef("Response body: %s", body)
|
||||
|
||||
// Write cache
|
||||
logrus.Infof("Writting cache for %s", parsedURL.String())
|
||||
logrus.Infof("Writting cache to: %s", getCacheFilename(parsedURL))
|
||||
logrus.Tracef("Writting cache for %s", parsedURL.String())
|
||||
logrus.Tracef("Writting cache to: %s", getCacheFilename(parsedURL))
|
||||
errWriteCache := ioutil.WriteFile(getCachePath(parsedURL), body, 0644)
|
||||
if errWriteCache != nil {
|
||||
logrus.Warnf("Can't write to cache: %s", errWriteCache)
|
||||
|
|
Loading…
Reference in New Issue