This commit is contained in:
tyrrrz
2026-07-25 21:18:39 +03:00
parent 427c6021ac
commit b89dd4c924
2 changed files with 120 additions and 127 deletions
+2 -2
View File
@@ -20,9 +20,9 @@ public class UrlBuilder
return this;
}
public UrlBuilder SetQueryParameter(string key, string? value, bool ignoreUnsetValue = true)
public UrlBuilder SetQueryParameter(string key, string? value, bool ignoreIfEmptyValue = true)
{
if (ignoreUnsetValue && string.IsNullOrWhiteSpace(value))
if (ignoreIfEmptyValue && string.IsNullOrWhiteSpace(value))
return this;
var keyEncoded = Uri.EscapeDataString(key);