Skip to content

Commit ac6b48b

Browse files
committed
Merge pull request #141 from rwifeng/multi_zone
request auth
2 parents 3404302 + 13ea6aa commit ac6b48b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Qiniu/Auth.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public function signRequest($urlString, $body, $contentType = null)
3838
}
3939
$data .= "\n";
4040

41-
if ($body !== null &&
42-
in_array((string) $contentType, array('application/x-www-form-urlencoded', 'application/json'), true)) {
41+
if ($body !== null && $contentType === 'application/x-www-form-urlencoded') {
4342
$data .= $body;
4443
}
4544
return $this->sign($data);

0 commit comments

Comments
 (0)