mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +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
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user