mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-08-14 23:56:43 +00:00
remove path_prefix from path
This commit is contained in:
parent
3824106118
commit
5e969d3052
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -116,6 +116,8 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
||||||
|
|
||||||
path := req.URL.EscapedPath()
|
path := req.URL.EscapedPath()
|
||||||
|
|
||||||
|
path = strings.Replace(path, path_prefix, "", 1)
|
||||||
|
|
||||||
path = strings.Replace(path, "/ggpht", "", 1)
|
path = strings.Replace(path, "/ggpht", "", 1)
|
||||||
path = strings.Replace(path, "/i/", "/", 1)
|
path = strings.Replace(path, "/i/", "/", 1)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue