Fixed path rewrite bug.
This commit is contained in:
parent
0c356dc8a4
commit
54de4f5c3f
@ -26,7 +26,6 @@ func rewrite(rawurl string) string {
|
|||||||
}
|
}
|
||||||
if strings.HasSuffix(u.Host, ".archive.ubuntu.com") {
|
if strings.HasSuffix(u.Host, ".archive.ubuntu.com") {
|
||||||
u.Host = "archive.ubuntu.com"
|
u.Host = "archive.ubuntu.com"
|
||||||
u.Path = "/ubuntu/"
|
|
||||||
rawurl = u.String()
|
rawurl = u.String()
|
||||||
}
|
}
|
||||||
return rawurl
|
return rawurl
|
||||||
|
Loading…
Reference in New Issue
Block a user