We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efae0ef commit ec9bf75Copy full SHA for ec9bf75
gcloud/storage/key.py
@@ -4,6 +4,7 @@
4
import mimetypes
5
import os
6
from StringIO import StringIO
7
+from urllib import quote_plus
8
9
from gcloud.storage._helpers import _PropertyMixin
10
from gcloud.storage._helpers import _scalar_property
@@ -117,7 +118,7 @@ def path(self):
117
118
elif not self.name:
119
raise ValueError('Cannot determine path without a key name.')
120
- return self.bucket.path + '/o/' + self.name
121
+ return self.bucket.path + '/o/' + quote_plus(self.name)
122
123
@property
124
def public_url(self):
0 commit comments