Skip to content

Commit

Permalink
Remove Referrer from proxy requests
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazeeGhost authored Oct 22, 2024
1 parent d001d99 commit 96cbe4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proxy/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ func getRequest(link string, originalRequest *http.Request) (*http.Response, err
case "Cookie":
cookieText := "PHPSESSID=null; sn=" + url.QueryEscape(config.Portal.SerialNumber) + "; mac=" + url.QueryEscape(config.Portal.MAC) + "; stb_lang=en; timezone=" + url.QueryEscape(config.Portal.TimeZone) + ";"
req.Header.Set("Cookie", cookieText)
case "Referer":
case "Referrer":
default:
req.Header.Set(k, v[0])
}
Expand Down

0 comments on commit 96cbe4d

Please sign in to comment.