Skip to content

Commit

Permalink
Merge pull request #18 from davisouzatb/patch-1
Browse files Browse the repository at this point in the history
fix() problema com carácter especial usando toString não estava tratando ...
  • Loading branch information
viniciussanchez authored Jun 4, 2024
2 parents 47346d5 + db3441c commit d2f97b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Horse.Jhonson.pas
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ procedure Middleware(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED
{$IF DEFINED(FPC)}
Res.RawWebResponse.ContentStream := TStringStream.Create(TJsonData(Res.Content).AsJSON);
{$ELSE}
Res.RawWebResponse.Content := TJSONValue(Res.Content).ToString;
Res.RawWebResponse.Content := TJSONValue(Res.Content).ToJSON;
{$ENDIF}
Res.RawWebResponse.ContentType := 'application/json; charset=' + Charset;
end;
Expand Down

0 comments on commit d2f97b2

Please sign in to comment.