mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-01-06 01:20:28 +05:30
Fix null qstring.
This commit is contained in:
parent
8d04aca336
commit
fdbeffaf37
@ -135,18 +135,16 @@ public class URLUtils {
|
|||||||
|
|
||||||
StringBuilder qstring = null;
|
StringBuilder qstring = null;
|
||||||
|
|
||||||
if (hasQuery) {
|
for (List<String> pair : queryPairs) {
|
||||||
for (List<String> pair : queryPairs) {
|
if (qstring == null) {
|
||||||
if (qstring == null) {
|
qstring = new StringBuilder();
|
||||||
qstring = new StringBuilder();
|
} else {
|
||||||
} else {
|
qstring.append("&");
|
||||||
qstring.append("&");
|
|
||||||
}
|
|
||||||
|
|
||||||
qstring.append(pair.get(0));
|
|
||||||
qstring.append("=");
|
|
||||||
qstring.append(pair.get(1));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qstring.append(pair.get(0));
|
||||||
|
qstring.append("=");
|
||||||
|
qstring.append(pair.get(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
newUrl += "?" + qstring;
|
newUrl += "?" + qstring;
|
||||||
|
Loading…
Reference in New Issue
Block a user