mirror of
https://github.com/TeamPiped/http3-ytproxy.git
synced 2024-08-14 23:56:43 +00:00
Fix path not being rewritten for maxres.jpg.
This commit is contained in:
parent
f95f1a8540
commit
49e3e100cd
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -77,7 +77,7 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
|
|||
proxyURL.RawQuery = q.Encode()
|
||||
|
||||
if strings.HasSuffix(proxyURL.EscapedPath(), "maxres.jpg") {
|
||||
proxyURL.RawPath = getBestThumbnail(proxyURL.EscapedPath())
|
||||
proxyURL.Path = getBestThumbnail(proxyURL.EscapedPath())
|
||||
}
|
||||
|
||||
request, err := http.NewRequest("GET", proxyURL.String(), nil)
|
||||
|
|
Loading…
Reference in a new issue