diff options
| author | Shulhan <m.shulhan@gmail.com> | 2020-05-30 03:26:34 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-05-30 03:26:34 +0700 |
| commit | 734ce643ecbc992834a8f78b44904b82b09bc84b (patch) | |
| tree | d67aec8f6e0fe922e3bb6c7abc91fb8ad30ee9e7 /direct_client.go | |
| parent | 6b03e4fd9670f865216a773545ea4a0bbf534582 (diff) | |
| download | kamusku-734ce643ecbc992834a8f78b44904b82b09bc84b.tar.xz | |
all: rename the module to "kamusku"
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 { |
