From ff7db64d33b4b113c27bcccfef197a0853a20739 Mon Sep 17 00:00:00 2001 From: joaopsilva Date: Sun, 6 May 2018 16:59:01 +0200 Subject: [PATCH] Fix #127 Remove meta header. --- .../binance/api/client/security/AuthenticationInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java b/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java index 3dc5c9b5a..a2eff2281 100644 --- a/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java +++ b/src/main/java/com/binance/api/client/security/AuthenticationInterceptor.java @@ -33,7 +33,7 @@ public Response intercept(Chain chain) throws IOException { boolean isApiKeyRequired = original.header(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_APIKEY) != null; boolean isSignatureRequired = original.header(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED) != null; - newRequestBuilder.removeHeader(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED) + newRequestBuilder.removeHeader(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_APIKEY) .removeHeader(BinanceApiConstants.ENDPOINT_SECURITY_TYPE_SIGNED); // Endpoint requires sending a valid API-KEY