Feat: get thumb & download file in qiniu policy

This commit is contained in:
HFO4
2020-01-15 14:15:25 +08:00
parent 534e127f87
commit 7fbbcefc57
8 changed files with 62 additions and 4 deletions

View File

@@ -347,7 +347,7 @@ func TestHandler_Thumb(t *testing.T) {
AuthInstance: auth.HMACAuth{},
}
ctx := context.Background()
asserts.NoError(cache.Set("setting_slave_api_timeout", "60", 0))
asserts.NoError(cache.Set("preview_timeout", "60", 0))
resp, err := handler.Thumb(ctx, "/1.txt")
asserts.NoError(err)
asserts.True(resp.Redirect)