Skip to content

Commit a2b341a

Browse files
authored
Merge pull request #39 from Readify/encoding
Ensure requests are utf-8 encoded.
2 parents 0bafb28 + 1a35a86 commit a2b341a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

functions/Invoke-Method.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ function Invoke-Method {
142142
}
143143

144144
$params = @{
145-
Method = $Method
146-
Headers = @{
147-
Accept = 'application/json'
145+
Method = $Method
146+
ContentType = 'application/json; charset=utf-8'
147+
Headers = @{
148+
Accept = 'application/json; charset=utf-8'
148149
}
149150
}
150151

0 commit comments

Comments
 (0)