More info / Docs :
- REST API's GZip response body isn't decoded @ /powershell/powershell/issues
- Discord thread
- Unable to override Accept-Encoding header with Invoke-WebRequest in version 7.4.1 #21205
- [System.Net.Http.HttpClientHandler.
AutomaticDecompression
]
OP was using the same Invoke-WebRequest|RestMethod
code on Ps5 and Ps7 with different results.
- One returned text
- The other was still gzipped