mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-01 18:35:13 +00:00
added version to user-agent header so node downloads can identify old versions of NVM4W
This commit is contained in:
@@ -131,7 +131,7 @@ func Download(url string, target string, version string) bool {
|
||||
}
|
||||
|
||||
// TODO: Add version to user agent
|
||||
req.Header.Set("User-Agent", "NVM for Windows")
|
||||
req.Header.Set("User-Agent", fmt.Sprintf("NVM for Windows %s", version))
|
||||
|
||||
response, err := client.Do(req)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user