Skip to content

Commit

Permalink
Merge pull request #39 from Readify/encoding
Browse files Browse the repository at this point in the history
Ensure requests are utf-8 encoded.
  • Loading branch information
RobFaie authored Mar 25, 2020
2 parents 0bafb28 + 1a35a86 commit a2b341a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions functions/Invoke-Method.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ function Invoke-Method {
}

$params = @{
Method = $Method
Headers = @{
Accept = 'application/json'
Method = $Method
ContentType = 'application/json; charset=utf-8'
Headers = @{
Accept = 'application/json; charset=utf-8'
}
}

Expand Down

0 comments on commit a2b341a

Please sign in to comment.