forked from TrueCloudLab/frostfs-node
[#1060] blobstor: allow to disable compression based on content-type
For some data compression makes little sense, as it is already compressed. This commit allows to leave such data unchanged based on `Content-Type` attribute. Currently exact, prefix and suffix matching are supported. Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
0f1eb743af
commit
0d969d7a06
11 changed files with 133 additions and 8 deletions
|
@ -31,7 +31,7 @@ func testAddress() *objectSDK.Address {
|
|||
return addr
|
||||
}
|
||||
|
||||
func testObject(sz uint64) *object.Object {
|
||||
func testObjectRaw(sz uint64) *object.RawObject {
|
||||
raw := object.NewRaw()
|
||||
|
||||
addr := testAddress()
|
||||
|
@ -46,7 +46,11 @@ func testObject(sz uint64) *object.Object {
|
|||
raw.SetPayload(raw.Payload()[:sz-(ln-sz)])
|
||||
}
|
||||
|
||||
return raw.Object()
|
||||
return raw
|
||||
}
|
||||
|
||||
func testObject(sz uint64) *object.Object {
|
||||
return testObjectRaw(sz).Object()
|
||||
}
|
||||
|
||||
func TestBlobovniczas(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue