remove path_prefix from path

This commit is contained in:
Andrea Spacca 2021-11-21 21:02:37 +01:00
parent 3824106118
commit 5e969d3052
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
path := req.URL.EscapedPath()
path = strings.Replace(path, path_prefix, "", 1)
path = strings.Replace(path, "/ggpht", "", 1)
path = strings.Replace(path, "/i/", "/", 1)