mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix url rewrite issues
Closes https://github.com/TeamPiped/Piped/issues/598
This commit is contained in:
parent
3709c89b5e
commit
5feec94220
1 changed files with 4 additions and 1 deletions
|
@ -1136,7 +1136,10 @@ public class ResponseHelper {
|
||||||
|
|
||||||
String path = url.getPath();
|
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=")
|
return Constants.PROXY_PART + path + (hasQuery ? "?" + query + "&host=" : "?host=")
|
||||||
+ URLUtils.silentEncode(host);
|
+ URLUtils.silentEncode(host);
|
||||||
|
|
Loading…
Reference in a new issue