Redo http Transport code
* Insert User-Agent in Transport - fixes #199 * Update timeouts to use Context * Modernise transport
This commit is contained in:
parent
5c91623148
commit
0cb9bb3b54
15 changed files with 273 additions and 133 deletions
|
@ -162,7 +162,6 @@ func swiftConnection(name string) (*swift.Connection, error) {
|
|||
ApiKey: apiKey,
|
||||
AuthUrl: authURL,
|
||||
AuthVersion: fs.ConfigFile.MustInt(name, "auth_version", 0),
|
||||
UserAgent: fs.UserAgent,
|
||||
Tenant: fs.ConfigFile.MustValue(name, "tenant"),
|
||||
Region: fs.ConfigFile.MustValue(name, "region"),
|
||||
Domain: fs.ConfigFile.MustValue(name, "domain"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue