Tune image referrer path (#968)

This commit is contained in:
bnkai
2020-11-30 01:50:43 +02:00
committed by GitHub
parent a7d333786f
commit aecbd236bc

View File

@@ -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)