fix: do not work with GET arguments

This commit is contained in:
Maks Snegov 2014-06-22 13:12:35 +04:00
parent fe69eff79b
commit 35f755005d

View File

@ -52,7 +52,7 @@ def download_content(url, depth=0):
else: else:
raise NotImplementedError("protocol %s is not implemented" % up.scheme) raise NotImplementedError("protocol %s is not implemented" % up.scheme)
conn.request("GET", up.path, None, headers) conn.request("GET", '?'.join((up.path, up.query)), None, headers)
response = conn.getresponse() response = conn.getresponse()
# follow redirects # follow redirects