Merge pull request #736 from TeamPiped/fix-qstring

Fix null qstring
This commit is contained in:
Kavin 2023-11-20 06:10:51 +00:00 committed by GitHub
commit e0225d3e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,6 @@ public class URLUtils {
StringBuilder qstring = null;
if (hasQuery) {
for (List<String> pair : queryPairs) {
if (qstring == null) {
qstring = new StringBuilder();
@ -147,7 +146,6 @@ public class URLUtils {
qstring.append("=");
qstring.append(pair.get(1));
}
}
newUrl += "?" + qstring;