mirror of
https://github.com/stashapp/stash.git
synced 2025-12-21 15:53:49 +01:00
Tune image referrer path (#968)
This commit is contained in:
parent
a7d333786f
commit
aecbd236bc
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue