Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Api/ObjectsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1144,8 +1144,8 @@ public function uploadChunkWithHttpInfo($bucket_key, $object_name, $content_leng
if ($content_range === null) {
throw new \InvalidArgumentException('Missing the required parameter $content_range when calling uploadChunk');
}
if (!preg_match("/^bytes [0-9]+\\-[0-9]+/[0-9]+$/", $content_range)) {
throw new \InvalidArgumentException("invalid value for \"content_range\" when calling ObjectsApi.uploadChunk, must conform to the pattern /^bytes [0-9]+\\-[0-9]+/[0-9]+$/.");
if (!preg_match("/^bytes [0-9]+\-[0-9]+\/+[0-9]+$/", $content_range)) {
throw new \InvalidArgumentException("invalid value for \"content_range\" when calling ObjectsApi.uploadChunk, must conform to the pattern /^bytes [0-9]+\-[0-9]+\/+[0-9]+$/.");
}

// verify the required parameter 'session_id' is set
Expand Down