Skip to content

Commit 847553a

Browse files
Encoding URL for enabling CDN (PUT request)
1 parent 89cfa4b commit 847553a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea/
2+
local-tests/
23
.DS_Store

lib/OpenCloud/ObjectStore/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Container extends CDNContainer
3737
*/
3838
public function EnableCDN($ttl = null)
3939
{
40-
$url = $this->Service()->CDN()->Url() . '/' . $this->name;
40+
$url = $this->Service()->CDN()->Url() . '/' . rawurlencode($this->name);
4141

4242
$headers = $this->MetadataHeaders();
4343

0 commit comments

Comments
 (0)