sloppy copypasta
This commit is contained in:
parent
898dadd53c
commit
55ddbf4765
|
@ -73,9 +73,9 @@ func DownloadableURL(original string) (string, error) {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
// If the path is using Windows-style slashes, URL parses
|
// If the path is using Windows-style slashes, URL parses
|
||||||
// it into the host field.
|
// it into the host field.
|
||||||
if url.Path == "" && strings.Contains(url.Host, `\`) {
|
if u.Path == "" && strings.Contains(u.Host, `\`) {
|
||||||
url.Path = url.Host
|
u.Path = u.Host
|
||||||
url.Host = ""
|
u.Host = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Only do the filepath transformations if the file appears
|
// Only do the filepath transformations if the file appears
|
||||||
|
|
Loading…
Reference in New Issue