1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

Bug 1604: Configurable mapping from file extension to Content-Type

https://winscp.net/tracker/1604

Source commit: d281df33649c7f2ebe228cbbf98a9fe01316621d
This commit is contained in:
Martin Prikryl
2018-01-31 17:14:12 +00:00
parent 794fedc0b8
commit c3a1f6d6fa
4 changed files with 44 additions and 2 deletions

View File

@@ -1314,7 +1314,7 @@ void __fastcall TS3FileSystem::Source(
TLibS3BucketContext BucketContext = GetBucketContext(BucketName);
UTF8String ContentType = UTF8String(GetFileMimeType(Handle.FileName));
UTF8String ContentType = UTF8String(FTerminal->Configuration->GetFileMimeType(Handle.FileName));
S3PutProperties PutProperties =
{
(ContentType.IsEmpty() ? NULL : ContentType.c_str()),