fix regression :(
This commit is contained in:
parent
20390ff1ec
commit
74a4cc04fe
|
@ -109,6 +109,14 @@ func DownloadableURL(original string) (string, error) {
|
||||||
// Make sure it is lowercased
|
// Make sure it is lowercased
|
||||||
url.Scheme = strings.ToLower(url.Scheme)
|
url.Scheme = strings.ToLower(url.Scheme)
|
||||||
|
|
||||||
|
// This is to work around issue #5927. This can safely be removed once
|
||||||
|
// we distribute with a version of Go that fixes that bug.
|
||||||
|
//
|
||||||
|
// See: https://code.google.com/p/go/issues/detail?id=5927
|
||||||
|
if url.Path != "" && url.Path[0] != '/' {
|
||||||
|
url.Path = "/" + url.Path
|
||||||
|
}
|
||||||
|
|
||||||
// Verify that the scheme is something we support in our common downloader.
|
// Verify that the scheme is something we support in our common downloader.
|
||||||
supported := []string{"file", "http", "https"}
|
supported := []string{"file", "http", "https"}
|
||||||
found := false
|
found := false
|
||||||
|
|
Loading…
Reference in New Issue