Files
PowerShell/test/powershell/Modules/Microsoft.PowerShell.Utility
Dan Travison 96a90f8985 Add explicit ContentType detection to Invoke-RestMethod (#4692)
This change removes the call to `ContentHelper.GetEncoding` since it's logic for returning a default encoding when a ContentType header is not found disables subsequent checks for meta charset definitions.
All variations of the Invoke-WebRequest tests have been mirrored for Invoke-RestMethod. Verbose output is used to verify the encoding since Invoke-RestMethod returns the JSON content directly instead of a response object. (See ExecuteRestMethod)
2017-08-31 10:47:54 -07:00
..
2016-08-25 17:49:32 +00:00
2016-07-27 12:06:51 -07:00
2016-07-27 12:06:51 -07:00
2016-07-27 12:06:51 -07:00