diff --git a/src/SystemAdmins.Eloomi.psd1 b/src/SystemAdmins.Eloomi.psd1 index 27299db..95589d5 100644 --- a/src/SystemAdmins.Eloomi.psd1 +++ b/src/SystemAdmins.Eloomi.psd1 @@ -3,7 +3,7 @@ RootModule = 'SystemAdmins.Eloomi.psm1'; # Version number of this module. - ModuleVersion = '1.0.6'; + ModuleVersion = '1.0.7'; # Supported PSEditions CompatiblePSEditions = @('Core', 'Desktop'); diff --git a/src/private/eloomi/Invoke-EloomiApi.ps1 b/src/private/eloomi/Invoke-EloomiApi.ps1 index 0eb0bcb..3423543 100644 --- a/src/private/eloomi/Invoke-EloomiApi.ps1 +++ b/src/private/eloomi/Invoke-EloomiApi.ps1 @@ -235,7 +235,7 @@ function Invoke-EloomiApi try { # Invoke Eloomi API. - $response = Invoke-WebRequest -Uri $Uri -Headers $header -Method Post -ContentType 'application/json' -Body $bodyUtf8 -ErrorAction Stop; + $response = Invoke-WebRequest -Uri $Uri -Headers $header -Method Post -ContentType 'application/json' -Body $bodyUtf8 -UseBasicParsing:$true -ErrorAction Stop; } catch { @@ -308,7 +308,7 @@ function Invoke-EloomiApi try { # Invoke Eloomi API. - $response = Invoke-WebRequest -Uri $Uri -Headers $header -Method Patch -ContentType 'application/json' -Body $bodyUtf8 -ErrorAction Stop; + $response = Invoke-WebRequest -Uri $Uri -Headers $header -Method Patch -ContentType 'application/json' -Body $bodyUtf8 -UseBasicParsing:$true -ErrorAction Stop; } catch { @@ -371,7 +371,7 @@ function Invoke-EloomiApi try { # Invoke Eloomi API. - $response = Invoke-WebRequest -Uri $Uri -Headers $header -Method Delete -ContentType 'application/json' -ErrorAction Stop; + $response = Invoke-WebRequest -Uri $Uri -Headers $header -Method Delete -ContentType 'application/json' -UseBasicParsing:$true -ErrorAction Stop; } catch {