Skip to content

Commit 08501b0

Browse files
committed
🏷️ update toStringQs function to accept nullable EncodeOptions for enhanced flexibility
1 parent 708f676 commit 08501b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qs-kotlin/src/main/kotlin/io/github/techouse/qskotlin/UriExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fun URI.queryParametersQs(options: DecodeOptions? = null): Map<String, Any?> =
2121
*/
2222
@JvmOverloads
2323
fun URI.toStringQs(
24-
options: EncodeOptions =
24+
options: EncodeOptions? =
2525
EncodeOptions(listFormat = ListFormat.REPEAT, skipNulls = false, strictNullHandling = false)
2626
): String {
2727
// Get all query parameters (including duplicates)

0 commit comments

Comments
 (0)