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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)