Skip to content

Commit

Permalink
Merge pull request #8 from GlerystonMatos/glerystonmatos/compilationxe6
Browse files Browse the repository at this point in the history
Settings for compilation in Delphi XE6
  • Loading branch information
viniciussanchez authored Sep 12, 2020
2 parents a15b828 + 3381da2 commit b7af0ee
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 b7af0ee

Please sign in to comment.