diff options
Diffstat (limited to 'direct_client.go')
| -rw-r--r-- | direct_client.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/direct_client.go b/direct_client.go index 5817b51..61824b1 100644 --- a/direct_client.go +++ b/direct_client.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package kbbi +package kamusku import ( "bytes" @@ -20,6 +20,7 @@ import ( "strings" "github.com/shuLhan/share/lib/debug" + libhttp "github.com/shuLhan/share/lib/http" "github.com/shuLhan/share/lib/net/html" "golang.org/x/net/publicsuffix" ) @@ -212,7 +213,7 @@ func (cl *directClient) login(surel, sandi string) (err error) { return fmt.Errorf("Login: %w", err) } - req.Header.Set(headerNameContentType, headerValueContentType) + req.Header.Set(libhttp.HeaderContentType, libhttp.ContentTypeForm) res, err := cl.httpc.Do(req) if err != nil { |
