mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Fix null qstring.
This commit is contained in:
parent
8d04aca336
commit
fdbeffaf37
1 changed files with 9 additions and 11 deletions
|
@ -135,7 +135,6 @@ 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();
|
||||||
|
@ -147,7 +146,6 @@ public class URLUtils {
|
||||||
qstring.append("=");
|
qstring.append("=");
|
||||||
qstring.append(pair.get(1));
|
qstring.append(pair.get(1));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
newUrl += "?" + qstring;
|
newUrl += "?" + qstring;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue