forked from TrueCloudLab/frostfs-http-gw
[#214] Support the Date header on upload
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
9dad47502e
commit
be47263c42
3 changed files with 14 additions and 5 deletions
|
@ -178,7 +178,7 @@ func TestPrepareExpirationHeader(t *testing.T) {
|
|||
},
|
||||
} {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
err := prepareExpirationHeader(tc.headers, tc.durations)
|
||||
err := prepareExpirationHeader(tc.headers, tc.durations, time.Now())
|
||||
if tc.err {
|
||||
require.Error(t, err)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue