Skip to content

Commit e5a8715

Browse files
committed
Specify UTF-8 in API requests
1 parent 529de39 commit e5a8715

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ITGlueAPI/Internal/APICalls.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ function Invoke-ITGlueRequest {
4343
'Headers' = $ITGlue_Headers
4444
'Body' = $body
4545
}
46+
if ($Method -ne 'GET') {
47+
$parameters['ContentType'] = 'application/vnd.api+json; charset=utf-8'
48+
}
4649

4750
$api_response = Invoke-RestMethod @parameters -ErrorAction Stop
4851
} catch {

0 commit comments

Comments
 (0)