From 443236d1b1f27f8558b97844cca11ab65ad0b9e0 Mon Sep 17 00:00:00 2001 From: makarid Date: Tue, 9 Mar 2021 18:22:40 +0200 Subject: [PATCH] Fixing fail assert. --- .../src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java index 563920a0eaf..865cc73db99 100644 --- a/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java +++ b/xchange-ftx/src/main/java/org/knowm/xchange/ftx/service/FtxDigest.java @@ -30,7 +30,7 @@ public String digestParams(RestInvocation restInvocation) { + restInvocation.getHttpMethod().toUpperCase() + restInvocation.getPath(); - if(restInvocation.getQueryString() != null){ + if(!restInvocation.getQueryString().isEmpty()){ message += "?"+restInvocation.getQueryString(); }