Skip to content

Commit

Permalink
#15
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Dec 28, 2023
1 parent 80fb6d0 commit 47346d5
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(LContent).ToString;
Res.RawWebResponse.Content := TJSONValue(Res.Content).ToString;
{$ENDIF}
Res.RawWebResponse.ContentType := 'application/json; charset=' + Charset;
end;
Expand Down

0 comments on commit 47346d5

Please sign in to comment.