mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
commit
e0225d3e63
1 changed files with 9 additions and 11 deletions
|
@ -135,18 +135,16 @@ public class URLUtils {
|
|||
|
||||
StringBuilder qstring = null;
|
||||
|
||||
if (hasQuery) {
|
||||
for (List<String> pair : queryPairs) {
|
||||
if (qstring == null) {
|
||||
qstring = new StringBuilder();
|
||||
} else {
|
||||
qstring.append("&");
|
||||
}
|
||||
|
||||
qstring.append(pair.get(0));
|
||||
qstring.append("=");
|
||||
qstring.append(pair.get(1));
|
||||
for (List<String> pair : queryPairs) {
|
||||
if (qstring == null) {
|
||||
qstring = new StringBuilder();
|
||||
} else {
|
||||
qstring.append("&");
|
||||
}
|
||||
|
||||
qstring.append(pair.get(0));
|
||||
qstring.append("=");
|
||||
qstring.append(pair.get(1));
|
||||
}
|
||||
|
||||
newUrl += "?" + qstring;
|
||||
|
|
Loading…
Reference in a new issue