diff --git a/CHANGELOG.md b/CHANGELOG.md index 830cada6..7a05249b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 3.1.1 +- Add -UseBasicParsing to `Invoke-WebRequest` to avoid IE profile error + ## 3.1.0 - Add `-CountOnly` to `Find-TppCertificate` to return the number of certificates found based on the filters provided, [#12](https://github.com/gdbarron/VenafiPS/issues/12) - Move from `Invoke-RestMethod` to `Invoke-WebRequest` in `Invoke-VenafiRestMethod` so we get response headers, to be used with `-CountOnly` above. `Invoke-VenafiRestMethod` has a new parameter, `-FullResponse`, to retrieve the complete response, not just content value. diff --git a/VenafiPS/Public/Invoke-VenafiRestMethod.ps1 b/VenafiPS/Public/Invoke-VenafiRestMethod.ps1 index 11817ae6..1f5856d1 100644 --- a/VenafiPS/Public/Invoke-VenafiRestMethod.ps1 +++ b/VenafiPS/Public/Invoke-VenafiRestMethod.ps1 @@ -106,10 +106,11 @@ function Invoke-VenafiRestMethod { } $params = @{ - Method = $Method - Uri = $uri - Headers = $hdr - ContentType = 'application/json' + Method = $Method + Uri = $uri + Headers = $hdr + ContentType = 'application/json' + UseBasicParsing = $true } if ( $Body ) { diff --git a/VenafiPS/Public/Test-ModuleHash.ps1 b/VenafiPS/Public/Test-ModuleHash.ps1 index 261dc691..e57cdc10 100644 --- a/VenafiPS/Public/Test-ModuleHash.ps1 +++ b/VenafiPS/Public/Test-ModuleHash.ps1 @@ -18,7 +18,7 @@ function Test-ModuleHash { ) try { - Invoke-webrequest -Uri "https://github.com/gdbarron/VenafiPS/releases/download/v$ModuleVersion/hash.json" -OutFile ('{0}/hash.json' -f $env:TEMP) + Invoke-webrequest -Uri "https://github.com/gdbarron/VenafiPS/releases/download/v$ModuleVersion/hash.json" -OutFile ('{0}/hash.json' -f $env:TEMP) -UseBasicParsing $json = (Get-Content -Path ('{0}/hash.json' -f $env:TEMP) -Raw) | ConvertFrom-Json } catch {