Check delete object param and fix restore name

This commit is contained in:
toranger
2019-02-28 14:42:50 +08:00
parent c95bb6143a
commit 4ff4f2df65
2 changed files with 8 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ func main() {
},
}
name := "archivetest"
_, err := c.Object.PutRestore(context.Background(), name, opt)
_, err := c.Object.PostRestore(context.Background(), name, opt)
if err != nil {
panic(err)
}