Commits

pjs  committed 6928be8

[svn r32] Added bucket cname support to SecureS3

  • Participants
  • Parent commits f722a58
  • Branches trunk

Comments (0)

Files changed (1)

File aws/secures3.py

             bucket = s.netloc.replace('.%s' % amazon_host, '')
             filename = s.path[1:]
         else:
-            raise ValueError('Invalid S3 bucket passed.')
+            # bucket.com/file... (CNAME BUCKET URL)
+            bucket = s.netloc
+            filename = s.path[1:]
 
         return (bucket, filename, s.scheme)