blob: e32f7473a3ec51add1193f3f3b470d68ad556b20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- PyDS/DownstreamTool.py
+++ PyDS/DownstreamTool.py
@@ -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:
|