Commits

Martin von Löwis committed b68983a

Quote file name URLs.

  • Participants
  • Parent commits 97e456e

Comments (0)

Files changed (1)

File pep381client/__init__.py

     def maybe_copy_file(self, project, path):
         h = http()
         if self.skip_file_contents:
-            h.putrequest("HEAD", path)
+            h.putrequest("HEAD", urllib2.quote(path))
         else:
-            h.putrequest("GET", path)
+            h.putrequest("GET", urllib2.quote(path))
         h.putheader('User-Agent', UA)
         etag = sqlite.etag(self.cursor, path)
         if etag: