1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-28 15:35:08 +03:00

Bug fix: Logged responses to S3 PUT when creating directory right after querying the respective bucket region and endpoint were concatenated

Source commit: 520c60dbf8ac9293440f17a000cf32487951059d
This commit is contained in:
Martin Prikryl
2021-10-08 09:43:49 +00:00
parent a28021142e
commit 3aabeef782

View File

@@ -1295,15 +1295,15 @@ void __fastcall TS3FileSystem::CreateDirectory(const UnicodeString & ADirName, b
}
else
{
TLibS3CallbackData Data;
RequestInit(Data);
Key = GetFolderKey(Key);
TLibS3BucketContext BucketContext = GetBucketContext(BucketName, Key);
S3PutObjectHandler PutObjectHandler = { CreateResponseHandler(), NULL };
TLibS3CallbackData Data;
RequestInit(Data);
S3_put_object(&BucketContext, StrToS3(Key), 0, NULL, FRequestContext, FTimeout, &PutObjectHandler, &Data);
CheckLibS3Error(Data);