From 287a17040203d0e51471eccff224d4e5182f5cdf Mon Sep 17 00:00:00 2001 From: rdiedrich Date: Mon, 29 Jun 2020 13:16:16 +0200 Subject: [PATCH] fixed encoding issue --- src/clojsa/saclient.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/clojsa/saclient.clj b/src/clojsa/saclient.clj index 4434b90..4494ead 100644 --- a/src/clojsa/saclient.clj +++ b/src/clojsa/saclient.clj @@ -21,7 +21,6 @@ query {:pagenumber page}] {:href base-url :params query}))) - (defn login-response [username password session] (with-open [client (http/create-client)] (let [login-url (str url "account.php") @@ -55,4 +54,6 @@ headers (http/headers resp)] (-> resp http/await - http/string)))) + http/body + .toByteArray + (String. "windows-1252")))))