mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Tune image referrer path (#968)
This commit is contained in:
@@ -100,7 +100,7 @@ func getImage(url string, globalConfig GlobalConfig) (*string, error) {
|
|||||||
|
|
||||||
// set the host of the URL as the referer
|
// set the host of the URL as the referer
|
||||||
if req.URL.Scheme != "" {
|
if req.URL.Scheme != "" {
|
||||||
req.Header.Set("Referer", req.URL.Scheme+"://"+req.Host)
|
req.Header.Set("Referer", req.URL.Scheme+"://"+req.Host+"/")
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
|
|||||||
Reference in New Issue
Block a user