Skip to content

Commit

Permalink
Fixes #1151 (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll authored Sep 22, 2019
1 parent 9fa2f8e commit 1e173c3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/UniversalDashboard/UniversalDashboardServer.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Find-Object {
$InputObject,
[Parameter(Mandatory)]
$FilterText
)
)

Process {
$results = $InputObject.psobject.Properties | Where { $InputObject.($_.Name) -match $FilterText }
Expand Down Expand Up @@ -1402,10 +1402,18 @@ function Update-UDDashboard {
[Parameter(ParameterSetName = "Content", Mandatory = $true)]
[ScriptBlock]$Content,
[Parameter(ParameterSetName = "FilePath", Mandatory = $true)]
[string]$FilePath
[string]$FilePath,
[Parameter()]
[Switch]$AllowTLs10
)

Process {

if (-not $AllowTls10)
{
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
}

if ($PSCmdlet.ParameterSetName -eq "Content") {
$Body = $Content.ToString()
}
Expand Down

0 comments on commit 1e173c3

Please sign in to comment.