Skip to content

Commit

Permalink
lunguage download bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
damiva authored Jan 19, 2022
1 parent c61d0e8 commit 097307e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dic.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func init() {
check(e)
for _, a := range i.Assets {
if strings.HasSuffix(a.Name, ".json.gz") {
ds = append(ds, plistObj{"label": strings.TrimSuffix(a.Name, ".json"), "data": a.Browser_download_url})
ds = append(ds, plistObj{"label": strings.TrimSuffix(a.Name, ".json.gz"), "data": a.Browser_download_url})
}
}
(&plist{
Expand Down
1 change: 1 addition & 0 deletions maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func download(src string, dst, opt interface{}) error {
r, e = http.Get(src)
case bool:
g = v
r, e = http.Get(src)
case http.Header:
var q *http.Request
if q, e = http.NewRequest("GET", src, nil); e == nil {
Expand Down

0 comments on commit 097307e

Please sign in to comment.