From 3dd0788a848aef5c512b03082ae128da8958ab21 Mon Sep 17 00:00:00 2001 From: Jannover5000r Date: Thu, 3 Jul 2025 20:16:13 +0200 Subject: [PATCH] test --- Bot/Untis.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Bot/Untis.go b/Bot/Untis.go index 8331643..5e71dc7 100644 --- a/Bot/Untis.go +++ b/Bot/Untis.go @@ -3,6 +3,7 @@ package Untis import ( "bytes" "encoding/json" + "io" "log" "net/http" "os" @@ -66,10 +67,11 @@ func Auth() ([]*http.Cookie, error) { // Parse cookies from response cookies := LoginOut.Cookies() - //log.Println("Received cookies:", cookies) - //log.Println("Set-Cookie headers:", LoginOut.Header["Set-Cookie"]) - //loginRespBody, _ := io.ReadAll(LoginOut.Body) - //log.Println("Login response body:", string(loginRespBody)) + log.Println("Received cookies:", cookies) + log.Println("Set-Cookie headers:", LoginOut.Header["Set-Cookie"]) + loginRespBody, _ := io.ReadAll(LoginOut.Body) + log.Println("Login response body:", string(loginRespBody)) + log.Println("Login successful") return cookies, nil