fix: 优化配置和API处理逻辑
This commit is contained in:
parent
1e75c68984
commit
fcf6bcbe75
|
|
@ -191,7 +191,7 @@ func (l *Login) doRequestWithBody(ctx context.Context, method string, url string
|
||||||
req.Header.Set("Content-Type", contentType)
|
req.Header.Set("Content-Type", contentType)
|
||||||
}
|
}
|
||||||
if authorization != "" {
|
if authorization != "" {
|
||||||
req.Header.Set("Authorization", authorization)
|
req.Header.Set("Authorization", "Bearer "+authorization)
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := (&http.Client{}).Do(req)
|
resp, err := (&http.Client{}).Do(req)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue