Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Amazon.DelphiRESTClient.pas #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Source/Core/Amazon.DelphiRESTClient.pas
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ procedure TAmazonDelphiRestClient.Post(aUrl: string; aRequest: UTF8String;
begin
// fiErrorCode := E.Message
fsErrorMessage := E.Message;
aResponse := FResponseContent.DataString;

if Trim(aResponse) = '' then
aResponse := fsErrorMessage;
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Amazon.SignatureV4.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

interface

Uses Classes, Amazon.Utils, SysUtils, IdGlobal, Amazon.Interfaces,
Uses Classes, Amazon.Utils, SysUtils, {$IFDEF DELPHIXE8_UP}IdGlobal,{$ENDIF} Amazon.Interfaces,
Amazon.Request;

const
Expand Down
19 changes: 19 additions & 0 deletions Source/DelphiVersions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@

(* http://docwiki.embarcadero.com/RADStudio/Rio/en/Compiler_Versions *)


(* Delphi 10.4 / C++Builder Sydney / D27 *)
{$IFDEF VER340}
{$DEFINE DELPHI10_4}
{$ENDIF}

(* Delphi 10.3 / C++Builder Rio / D26 *)
{$IFDEF VER330}
{$DEFINE DELPHI10_3}
Expand Down Expand Up @@ -93,6 +99,19 @@
{$DEFINE DELPHI2007_1}
{$ENDIF}

{$IFDEF DELPHI10_4}
{$DEFINE DELPHI10_4_UP}
{$DEFINE DELPHI10_3_UP}
{$DEFINE DELPHI10_2_UP}
{$DEFINE DELPHI10_1_UP}
{$DEFINE DELPHI10_UP}
{$DEFINE DELPHIXE8_UP}
{$DEFINE DELPHIXE7_UP}
{$DEFINE DELPHIXE6_UP}
{$DEFINE DELPHI2009_UP}
{$ENDIF}


{$IFDEF DELPHI10_3}
{$DEFINE DELPHI10_3_UP}
{$DEFINE DELPHI10_2_UP}
Expand Down