Skip to content

Commit ec9bf75

Browse files
author
francois kawala
committed
Fixes #354
1 parent efae0ef commit ec9bf75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcloud/storage/key.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import mimetypes
55
import os
66
from StringIO import StringIO
7+
from urllib import quote_plus
78

89
from gcloud.storage._helpers import _PropertyMixin
910
from gcloud.storage._helpers import _scalar_property
@@ -117,7 +118,7 @@ def path(self):
117118
elif not self.name:
118119
raise ValueError('Cannot determine path without a key name.')
119120

120-
return self.bucket.path + '/o/' + self.name
121+
return self.bucket.path + '/o/' + quote_plus(self.name)
121122

122123
@property
123124
def public_url(self):

0 commit comments

Comments
 (0)