projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7125d9f
)
Bug #192195 - In dir_get_list(), append a trailing / to the address
author
Zac Medico
<zmedico@gentoo.org>
Wed, 26 Sep 2007 04:00:51 +0000
(
04:00
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 26 Sep 2007 04:00:51 +0000
(
04:00
-0000)
when necessary in order to avoid getting a 400 error from the http
server. (trunk r7771)
svn path=/main/branches/2.1.2/; revision=7811
pym/getbinpkg.py
patch
|
blob
|
history
diff --git
a/pym/getbinpkg.py
b/pym/getbinpkg.py
index b11a775e1a2e76aa5044bb9435714c9e3a1d7b31..71969b00601243027b241dc2c3cee47ba959d3a2 100644
(file)
--- a/
pym/getbinpkg.py
+++ b/
pym/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: