From 9d9505250d549b7a5cca9c0cd2ebfc8359bfcd45 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 11 Apr 2020 23:56:05 +0700 Subject: direct_client: perbaikan parameter untuk mendapatkan token login Seharusnya untuk mendapatkan token attribut yang dicari adalah "value" bukan "name". --- direct_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct_client.go b/direct_client.go index 485961d..b4bcf98 100644 --- a/direct_client.go +++ b/direct_client.go @@ -268,7 +268,7 @@ func (cl *directClient) parseHTMLLogin(htmlBody []byte) ( continue } - token := node.GetAttrValue(attrNameName) + token := node.GetAttrValue(attrNameValue) if len(token) > 0 { return token, nil } -- cgit v1.3