|
3 | 3 |
|
4 | 4 | using System;
|
5 | 5 | using System.ComponentModel;
|
6 |
| -using System.Net; |
7 | 6 | using System.Net.Http;
|
8 | 7 | using System.Text.RegularExpressions;
|
9 | 8 | using System.Threading;
|
@@ -64,7 +63,7 @@ public static bool InstallNanoClr(LogMessenger logger)
|
64 | 63 | client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36");
|
65 | 64 |
|
66 | 65 | // Set any additional headers, if needed.
|
67 |
| - client.DefaultRequestHeaders.Add("Content-Type", "application/json"); |
| 66 | + client.DefaultRequestHeaders.Add("Accept", "application/json"); |
68 | 67 |
|
69 | 68 | // Set the URL to request.
|
70 | 69 | string url = "https://api.nuget.org/v3-flatcontainer/nanoclr/index.json";
|
@@ -123,7 +122,7 @@ public static bool InstallNanoClr(LogMessenger logger)
|
123 | 122 |
|
124 | 123 | if (cliResult.ExitCode == 0)
|
125 | 124 | {
|
126 |
| - // this will be either (on update): |
| 125 | + // this will be either (on update): |
127 | 126 | // Tool 'nanoclr' was successfully updated from version '1.0.205' to version '1.0.208'.
|
128 | 127 | // or (update becoming reinstall with same version, if there is no new version):
|
129 | 128 | // Tool 'nanoclr' was reinstalled with the latest stable version (version '1.0.208').
|
@@ -190,7 +189,7 @@ public static void UpdateNanoCLRInstance(
|
190 | 189 |
|
191 | 190 | if (cliResult.ExitCode == 0)
|
192 | 191 | {
|
193 |
| - // this will be either (on update): |
| 192 | + // this will be either (on update): |
194 | 193 | // Updated to v1.8.1.102
|
195 | 194 | // or (on same version):
|
196 | 195 | // Already at v1.8.1.102
|
|
0 commit comments