Skip to content

Commit

Permalink
Merge pull request #94 from helloEson/patch-1
Browse files Browse the repository at this point in the history
fix policy.insertOnly
  • Loading branch information
longbai committed Oct 14, 2014
2 parents 9ed22ec + a3a98de commit 4adfb0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiniu/rs.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ public function Token($mac) // => $token
if (!empty($this->EndUser)) {
$policy['endUser'] = $this->EndUser;
}
if (!empty($this->InsertOnly)) {
$policy['exclusive'] = $this->InsertOnly;
if (isset($this->InsertOnly)) {
$policy['insertOnly'] = $this->InsertOnly;
}
if (!empty($this->DetectMime)) {
$policy['detectMime'] = $this->DetectMime;
Expand Down

0 comments on commit 4adfb0d

Please sign in to comment.