mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-11-15 12:17:22 +01:00
Disable payload signing
This commit is contained in:
@@ -122,6 +122,7 @@ namespace VoidCat.Model
|
||||
public string? BucketName { get; init; } = "void-cat";
|
||||
public bool Direct { get; init; }
|
||||
public bool SendChecksum { get; init; } = true;
|
||||
public bool DisablePayloadSigning { get; init; }
|
||||
}
|
||||
|
||||
public sealed class VirusScannerSettings
|
||||
|
||||
@@ -43,6 +43,7 @@ public class S3FileStore : StreamFileStore, IFileStore
|
||||
ChecksumAlgorithm = _config.SendChecksum ? ChecksumAlgorithm.SHA256 : null,
|
||||
ChecksumSHA256 = payload.Meta.Digest != default && _config.SendChecksum ?
|
||||
Convert.ToBase64String(payload.Meta.Digest!.FromHex()) : null,
|
||||
DisablePayloadSigning = _config.DisablePayloadSigning,
|
||||
Headers =
|
||||
{
|
||||
ContentLength = (long)payload.Meta.Size
|
||||
@@ -200,7 +201,8 @@ public class S3FileStore : StreamFileStore, IFileStore
|
||||
BucketName = _config.BucketName,
|
||||
PartNumber = payload.Segment,
|
||||
Key = payload.Id.ToString(),
|
||||
InputStream = fsTmp
|
||||
InputStream = fsTmp,
|
||||
DisablePayloadSigning = _config.DisablePayloadSigning
|
||||
};
|
||||
|
||||
var bodyResponse = await _client.UploadPartAsync(mBody, cts);
|
||||
|
||||
Reference in New Issue
Block a user