From 0014b74c6b82dc72ed6254e3353299979da722a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Mon, 14 May 2018 21:12:45 +0200 Subject: [PATCH] Fix certificate parsing issues (#109) --- api/src/main/java/io/github/wulkanowy/api/Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/main/java/io/github/wulkanowy/api/Client.java b/api/src/main/java/io/github/wulkanowy/api/Client.java index b5080e0c..34e71398 100644 --- a/api/src/main/java/io/github/wulkanowy/api/Client.java +++ b/api/src/main/java/io/github/wulkanowy/api/Client.java @@ -58,7 +58,6 @@ public class Client { return; } - this.cookies = new Cookies(); this.symbol = new Login(this).login(email, password, symbol); } @@ -143,6 +142,8 @@ public class Client { this.cookies.addItems(response.cookies()); + response.bufferUp(); // fixes cert parsing issues + return checkForErrors(response.parse()); }