fix
This commit is contained in:
parent
8383a3820f
commit
01df404ead
|
@ -34,9 +34,10 @@ type Session struct {
|
|||
client *http.Client
|
||||
transport *http.Transport
|
||||
cookiejar http.CookieJar
|
||||
params *Body
|
||||
Header http.Header
|
||||
body *Body
|
||||
auth *BasicAuth
|
||||
|
||||
Header http.Header
|
||||
}
|
||||
|
||||
const (
|
||||
|
@ -95,7 +96,7 @@ func NewSession() *Session {
|
|||
}
|
||||
|
||||
client.Jar = cjar
|
||||
return &Session{client: client, params: &Body{}, transport: transport, auth: nil, cookiejar: client.Jar, Header: make(http.Header)}
|
||||
return &Session{client: client, body: &Body{}, transport: transport, auth: nil, cookiejar: client.Jar, Header: make(http.Header)}
|
||||
}
|
||||
|
||||
// SetConfig 设置配置
|
||||
|
|
Loading…
Reference in New Issue
Block a user