Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix requests encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
caiolrm committed Nov 8, 2019
1 parent 69d7a39 commit 8cf164c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PanamahSDK.Client.pas
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function TPanamahClient.MakeRequest(const ARequest: IPanamahRequest): IPanamahRe
end;
mtPOST:
begin
RequestContent := TStringStream.Create(ARequest.Content);
RequestContent := TStringStream.Create(ARequest.Content, TEncoding.UTF8);
try
ResponseContent := HTTP.Post(ARequest.URL, RequestContent);
finally
Expand All @@ -239,7 +239,7 @@ function TPanamahClient.MakeRequest(const ARequest: IPanamahRequest): IPanamahRe
end;
mtPUT:
begin
RequestContent := TStringStream.Create(ARequest.Content);
RequestContent := TStringStream.Create(ARequest.Content, TEncoding.UTF8);
try
ResponseContent := HTTP.Put(ARequest.URL, RequestContent);
finally
Expand Down

0 comments on commit 8cf164c

Please sign in to comment.