Skip to content

Commit

Permalink
Settings for compilation in Delphi XE6.
Browse files Browse the repository at this point in the history
  • Loading branch information
GlerystonMatos committed Sep 11, 2020
1 parent a15b828 commit 3381da2
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 @@ -40,7 +40,7 @@ procedure Jhonson(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED(FP

if Assigned(LContent) and LContent.InheritsFrom({$IF DEFINED(FPC)}TJsonData{$ELSE}TJSONValue{$ENDIF}) then
begin
LWebResponse.Content := {$IF DEFINED(FPC)}TJsonData(LContent).AsJSON {$ELSE}TJSONValue(LContent).ToJSON{$ENDIF};
LWebResponse.Content := {$IF DEFINED(FPC)}TJsonData(LContent).AsJSON {$ELSE}{$IF CompilerVersion > 27.0}TJSONValue(LContent).ToJSON{$ELSE}TJSONValue(LContent).ToString{$ENDIF}{$ENDIF};
LWebResponse.ContentType := 'application/json';
end;
end;
Expand Down

0 comments on commit 3381da2

Please sign in to comment.