We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3da8be7 commit 34d5e3fCopy full SHA for 34d5e3f
gcloud/storage/key.py
@@ -3,6 +3,7 @@
3
import mimetypes
4
import os
5
from StringIO import StringIO
6
+import urllib
7
8
from gcloud.storage.acl import ObjectACL
9
from gcloud.storage.iterator import KeyDataIterator
@@ -90,7 +91,8 @@ def path(self):
90
91
elif not self.name:
92
raise ValueError('Cannot determine path without a key name.')
93
- return self.bucket.path + '/o/' + self.name
94
+ # Slashes (/) aren't safe in this part of the URL.
95
+ return self.bucket.path + '/o/' + urllib.quote(self.name, '')
96
97
@property
98
def public_url(self):
0 commit comments