Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

阿里云oss存储桶创建文件夹api接口缺少请求头content-length参数 #15

Open
3325588377 opened this issue Apr 20, 2022 · 0 comments

Comments

@3325588377
Copy link

OssClient.php 文件1714行代码bug
public function createObjectDir($bucket, $object, $options = NULL)
{
$this->preCheckCommon($bucket, $object, $options);
$options[OssConst::OSS_BUCKET] = $bucket;
$options[OssConst::OSS_METHOD] = OssConst::OSS_HTTP_PUT;
$options[OssConst::OSS_OBJECT] = $object . '/';
$options[OssConst::OSS_CONTENT_LENGTH] = array(OssConst::OSS_CONTENT_LENGTH => 0);
$response = $this->auth($options);
$result = new PutSetDeleteResult($response);
return $result->getData();
}
$options[OssConst::OSS_CONTENT_LENGTH] 不能为0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant