mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 01:42:29 +00:00
fix content encoding
This commit is contained in:
parent
96dc4e0907
commit
8c79c0fe6d
1 changed files with 1 additions and 1 deletions
|
|
@ -79,7 +79,7 @@
|
|||
}
|
||||
|
||||
if ($Body -and $splatParameters.Keys -notcontains 'Form') {
|
||||
$splatParameters["Body"] = $Body | Convertto-Json
|
||||
$splatParameters["Body"] = [System.Text.Encoding]::UTF8.GetBytes(($Body | Convertto-Json))
|
||||
}
|
||||
|
||||
$script:PSDefaultParameterValues = $global:PSDefaultParameterValues
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue