projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16a1cc8
)
Bug #192195 - In dir_get_list(), append a trailing / to the address when
author
Zac Medico
<zmedico@gentoo.org>
Wed, 12 Sep 2007 18:29:08 +0000
(18:29 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 12 Sep 2007 18:29:08 +0000
(18:29 -0000)
necessary in order to avoid getting a 400 error from the http server.
svn path=/main/trunk/; revision=7771
pym/portage/getbinpkg.py
patch
|
blob
|
history
diff --git
a/pym/portage/getbinpkg.py
b/pym/portage/getbinpkg.py
index 752a0fb4ccd48a84c951004dffdb474d8c3ffe82..8225a8242a75da4839dd7c1bdaed56d0b9df0194 100644
(file)
--- a/
pym/portage/getbinpkg.py
+++ b/
pym/portage/getbinpkg.py
@@
-298,6
+298,10
@@
def dir_get_list(baseurl,conn=None):
listing = None
if protocol in ["http","https"]:
+ if not address.endswith("/"):
+ # http servers can return a 400 error here
+ # if the address doesn't end with a slash.
+ address += "/"
page,rc,msg = make_http_request(conn,address,params,headers)
if page: