mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-05 21:11:05 +02:00
Fix url rewrite issues
Closes https://github.com/TeamPiped/Piped/issues/598
This commit is contained in:
parent
3709c89b5e
commit
5feec94220
@ -1136,7 +1136,10 @@ public class ResponseHelper {
|
||||
|
||||
String path = url.getPath();
|
||||
|
||||
path = path.replace("-rj", "-rw");
|
||||
if (path.contains("=")) {
|
||||
path = StringUtils.substringBefore(path, "=") + "="
|
||||
+ StringUtils.substringAfter(path, "=").replace("-rj", "-rw");
|
||||
}
|
||||
|
||||
return Constants.PROXY_PART + path + (hasQuery ? "?" + query + "&host=" : "?host=")
|
||||
+ URLUtils.silentEncode(host);
|
||||
|
Loading…
x
Reference in New Issue
Block a user