diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-04-11 23:56:05 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-04-11 23:56:05 +0700 |
| commit | 9d9505250d549b7a5cca9c0cd2ebfc8359bfcd45 (patch) | |
| tree | 63b3d35c9c4546375a1f9b26de75abea682e2a22 /direct_client.go | |
| parent | 3db6e6d9bd92ccfcdb5e3c1e899b731affbaa1eb (diff) | |
| download | kamusku-9d9505250d549b7a5cca9c0cd2ebfc8359bfcd45.tar.xz | |
direct_client: perbaikan parameter untuk mendapatkan token login
Seharusnya untuk mendapatkan token attribut yang dicari adalah "value"
bukan "name".
Diffstat (limited to 'direct_client.go')
| -rw-r--r-- | direct_client.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
