Skip to content

Commit 210879e

Browse files
author
coscale_kdegroot
committed
Forgot this check.
1 parent 095633b commit 210879e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/coscale/sdk/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public String getRequesUrl(String endpoint, Options options, boolean globalApi)
423423
}
424424
sb.append(endpoint);
425425

426-
if (options != null) {
426+
if (options != null && options.hasQuery()) {
427427
// No ? yet in the string, then add one.
428428
if (sb.indexOf("?") != -1) {
429429
sb.append('?');

0 commit comments

Comments
 (0)