Skip to content

Commit 62e9f0e

Browse files
committed
Compatibility with Dephi 10.4.3 Sydney
1 parent 271c58b commit 62e9f0e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Source/Core/AWS.Auth.S3Signer.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class function TS3Signer.BuildCanonicalizedHeaders(AHeaders: TDictionary<string,
5353
var sb := TStringBuilder.Create(256);
5454
try
5555
// Steps 1 and Steps 2 requires all headers to be in lowercase and lexicographically sorted by header name.
56-
var Keys := TList<string>.Create(AHeaders.Keys.ToArray);
56+
var Keys := TList<string>.Create(AHeaders.Keys);
5757
try
5858
Keys.Sort(TComparer<string>.Construct(
5959
function(const S1, S2: string): Integer

Source/Core/AWS.Internal.RegionEndpointV3.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ function TRegionEndpointProviderV3.GetNonStandardRegionEndpoint(const ARegionNam
423423
if Endpoint.RegionName = ARegionName then
424424
Exit(Endpoint);
425425

426-
PartitionData := (FRoot.Values['partitions'] as TJSONArray)[0] as TJSONObject;
426+
PartitionData := (FRoot.Values['partitions'] as TJSONArray).Items[0] as TJSONObject;
427427
RegionDescription := GetUnknownRegionDescription(ARegionName);
428428
ServicesData := nil;
429429
FoundContainingPartition := False;

Source/Core/AWS.Json.Utils.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function JsonDeserialize_ListString(const Value: string): TList<string>;
2828
var
2929
JArray: TJSONArray;
3030
begin
31-
JArray := TJSONValue.ParseJSONValue(Value) as TJSONArray;
31+
JArray := TJSONObject.ParseJSONValue(Value) as TJSONArray;
3232
try
3333
Result := TList<string>.Create;
3434
try

0 commit comments

Comments
 (0)