diff --git a/PSIdentityNow/PSIdentityNow.psd1 b/PSIdentityNow/PSIdentityNow.psd1 index f02e9c9..770a4f3 100644 --- a/PSIdentityNow/PSIdentityNow.psd1 +++ b/PSIdentityNow/PSIdentityNow.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSIdentityNow.psm1' # Version number of this module. - ModuleVersion = '0.5.1' + ModuleVersion = '0.5.2' # Supported PSEditions CompatiblePSEditions = 'Core' @@ -128,4 +128,4 @@ # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' -} \ No newline at end of file +} diff --git a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 index 8f32410..b77b600 100644 --- a/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 +++ b/PSIdentityNow/Public/Invoke-IDNWRestMethod.ps1 @@ -112,7 +112,7 @@ function Invoke-IDNWRestMethod { # Pagination loop do { # Combine parameters into query string - if ($Method -eq "GET") { + if ($Method -in @("GET","POST")) { $queryString = ($UrlParams.GetEnumerator() | ForEach-Object { [string]::Format("{0}={1}", $_.Key, [uri]::EscapeUriString($_.Value)) }) -join "&" @@ -226,4 +226,4 @@ function Invoke-IDNWRestMethod { # Return all results Remove-Variable -Name Headers -Force Write-Output $AllResults -} \ No newline at end of file +}