James O'Donnell  committed d580f35 Draft

oh look normalizing and cleaning the name removes slashes

  • Participants
  • Parent commits 1143c1e

Comments (0)

Files changed (1)

File storages/backends/

         return _parse_datestring(entry.last_modified)
     def url(self, name):
+        original_name = name
         name = self._normalize_name(self._clean_name(name))
         if self.custom_domain:
             return "%s://%s/%s" % ('https' if self.secure_urls else 'http',
         url = self.connection.generate_url(self.querystring_expire,
                                            method='GET',, key=self._encode_name(name),
                                            query_auth=self.querystring_auth, force_http=not self.secure_urls)
-        if name.endswith('/') and not url.endswith('/'):
+        if original_name.endswith('/') and not url.endswith('/'):
             url += '/'
         return url