summaryrefslogtreecommitdiff
blob: 39877b4f60c58f96ff1324721eb4d2bac054a151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- DownstreamTool.py	2003-10-07 05:15:01.000000000 -0400
+++ /usr/lib/python2.3/site-packages/PyDS/DownstreamTool.py	2004-02-10 16:05:19.000000000 -0500
@@ -36,6 +36,7 @@
 import urllib
 import gzip
 import mimetypes
+import urlparse
 
 import PyDS.Tool
 
@@ -74,6 +75,8 @@
 				for h in self.cache._getUrlHeaders(theurl):
 					apply(self.addheader, h)
 					self.message += _('<br>adding Header "%s: %s"') % h
+			urlpieces = urlparse.urlparse(url[1])
+			url = (urlpieces[1], url[1])
 			res = urllib.URLopener.open_http(self, url, data)
 			self.message = self.message.replace('%', '%%')
 			if self.verbose: