Skip to content

Commit 4adfb0d

Browse files
committed
Merge pull request #94 from helloEson/patch-1
fix policy.insertOnly
2 parents 9ed22ec + a3a98de commit 4adfb0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiniu/rs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public function Token($mac) // => $token
9191
if (!empty($this->EndUser)) {
9292
$policy['endUser'] = $this->EndUser;
9393
}
94-
if (!empty($this->InsertOnly)) {
95-
$policy['exclusive'] = $this->InsertOnly;
94+
if (isset($this->InsertOnly)) {
95+
$policy['insertOnly'] = $this->InsertOnly;
9696
}
9797
if (!empty($this->DetectMime)) {
9898
$policy['detectMime'] = $this->DetectMime;

0 commit comments

Comments
 (0)