Skip to content

Commit d9c97fd

Browse files
committed
allow single = as query
1 parent 62be0c1 commit d9c97fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/src/main/java/software/amazon/awssdk/utils/http/SdkHttpUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ public static Map<String, List<String>> uriParams(URI uri) {
405405
return splitQueryString(uri.getRawQuery())
406406
.stream()
407407
.map(s -> s.split("="))
408+
.filter(s -> s.length > 0)
408409
.map(s -> s.length == 1 ? new String[] { s[0], null } : s)
409410
.collect(groupingBy(a -> urlDecode(a[0]), mapping(a -> urlDecode(a[1]), toList())));
410411
}

0 commit comments

Comments
 (0)