These need spaces?
This commit is contained in:
parent
8fa4c50379
commit
3842f054a5
|
@ -110,7 +110,7 @@ func (dl *Download) Execute() error {
|
||||||
|
|
||||||
req, _ := http.NewRequestWithContext(ctx, http.MethodGet, dl.req.URL.String(), nil)
|
req, _ := http.NewRequestWithContext(ctx, http.MethodGet, dl.req.URL.String(), nil)
|
||||||
req.Header.Set("User-Agent", "Pterodactyl Panel (https://pterodactyl.io)")
|
req.Header.Set("User-Agent", "Pterodactyl Panel (https://pterodactyl.io)")
|
||||||
res, err := client.Do(req) // lgtm[go/request-forgery]
|
res, err := client.Do(req) // lgtm [go/request-forgery]
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.New("downloader: failed opening request to download file")
|
return errors.New("downloader: failed opening request to download file")
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,7 +213,7 @@ func (str serverTransferRequest) downloadArchive() (*http.Response, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
req.Header.Set("Authorization", str.Token)
|
req.Header.Set("Authorization", str.Token)
|
||||||
res, err := client.Do(req) // lgtm[go/request-forgery]
|
res, err := client.Do(req) // lgtm [go/request-forgery]
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user