update
This commit is contained in:
@@ -127,6 +127,9 @@ func (client *AgentClient) Do(ctx context.Context, server Server, method, path s
|
||||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
if method != http.MethodGet && method != http.MethodHead {
|
||||
request.Close = true
|
||||
}
|
||||
request.Header.Set("Authorization", "Bearer "+token)
|
||||
request.Header.Set("Accept", "application/json")
|
||||
if len(body) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user