From fc54b843e4c5736bf416b900db79ea1440cbee96 Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 03 Jun 2021 12:58:20 +0000 Subject: [PATCH] Encoder Tests --- src/de/uhilger/httpserver/auth/handler/FormLoginHandler.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/de/uhilger/httpserver/auth/handler/FormLoginHandler.java b/src/de/uhilger/httpserver/auth/handler/FormLoginHandler.java index e12eb0f..5008ee6 100644 --- a/src/de/uhilger/httpserver/auth/handler/FormLoginHandler.java +++ b/src/de/uhilger/httpserver/auth/handler/FormLoginHandler.java @@ -23,6 +23,7 @@ import de.uhilger.httpserver.auth.FormAuthenticator; import de.uhilger.httpserver.auth.TokenAuthenticator; import de.uhilger.httpserver.auth.realm.User; +import de.uhilger.httpserver.base.handler.HttpHelper; import de.uhilger.httpserver.base.handler.HttpResponder; import java.io.IOException; import java.util.HashMap; @@ -152,7 +153,7 @@ @Override protected User getUser(HttpExchange exchange) throws IOException { - String body = bodyLesen(exchange); + String body = new HttpHelper().bodyLesen(exchange); String[] nameWertPaare = body.split(TokenAuthenticator.STR_AMP); HashMap<String, String> werte = new HashMap(); for (String nameWert : nameWertPaare) { -- Gitblit v1.9.3