+13
-0
lines changedFilter options
+13
-0
lines changed Original file line number Diff line number Diff line change
@@ -223,8 +223,12 @@ function Invoke-GHRestMethod
223
223
}
224
224
}
225
225
226
+
# Disable Progress Bar in function scope during Invoke-WebRequest
227
+
$ProgressPreference = 'SilentlyContinue'
228
+
226
229
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12
227
230
$result = Invoke-WebRequest @params
231
+
228
232
if ($Method -eq 'Delete')
229
233
{
230
234
Write-Log -Message "Successfully removed." -Level Verbose
@@ -265,6 +269,9 @@ function Invoke-GHRestMethod
265
269
266
270
try
267
271
{
272
+
# Disable Progress Bar in function scope during Invoke-WebRequest
273
+
$ProgressPreference = 'SilentlyContinue'
274
+
268
275
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12
269
276
Invoke-WebRequest @params
270
277
}
Original file line number Diff line number Diff line change
@@ -181,6 +181,9 @@ function Invoke-SendTelemetryEvent
181
181
$params.Add("TimeoutSec", (Get-GitHubConfiguration -Name WebRequestTimeoutSec))
182
182
$params.Add("Body", $bodyAsBytes)
183
183
184
+
# Disable Progress Bar in function scope during Invoke-WebRequest
185
+
$ProgressPreference = 'SilentlyContinue'
186
+
184
187
$result = Invoke-WebRequest @params
185
188
}
186
189
}
@@ -211,6 +214,9 @@ function Invoke-SendTelemetryEvent
211
214
212
215
try
213
216
{
217
+
# Disable Progress Bar in function scope during Invoke-WebRequest
218
+
$ProgressPreference = 'SilentlyContinue'
219
+
214
220
Invoke-WebRequest @params
215
221
}
216
222
catch [System.Net.WebException]
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4