Added configuration option for proxy (#609)
* Use downloader.SetDefaultConfig() to set user-agent for the arduino-cli This change allows to not pass-trough the downloader configuration from function to function everywhere (and sometime we forget to pass it for example in the "core update-index" command). * Add support for network proxy configuration * Cosmetic: added blank space in configuration/defaults.go * Update go-downloader to 1.2.0 * Refactored function to generate user-agent * Added a TODO for missing proxy usage in board list API query * Partially revert global network configuration. It's better to read the network configuration before each http request so in case it is changed using "Settings" functions in daemon mode the changes are immediately applied.
Showing
commands/download.go
0 → 100644
... | ... | @@ -38,7 +38,7 @@ require ( |
github.com/spf13/viper v1.6.2 | ||
github.com/stretchr/testify v1.4.0 | ||
go.bug.st/cleanup v1.0.0 | ||
go.bug.st/downloader v1.1.0 | ||
go.bug.st/downloader v1.2.0 | ||
go.bug.st/relaxed-semver v0.0.0-20190922224835-391e10178d18 | ||
go.bug.st/serial v1.0.0 | ||
go.bug.st/serial.v1 v0.0.0-20180827123349-5f7892a7bb45 // indirect | ||
... | ... |
Please register or sign in to comment