[#214] Support the Date header on upload

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-11-08 09:55:13 +03:00 committed by Alex Vanin
parent 9dad47502e
commit be47263c42
3 changed files with 14 additions and 5 deletions

View file

@ -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 {