I don't think this is needed anymore
This commit is contained in:
parent
2838a2371d
commit
40f0cc6dfe
|
@ -69,16 +69,6 @@ func DownloadableURL(original string) (string, error) {
|
|||
}
|
||||
|
||||
if u.Scheme == "file" {
|
||||
// Windows file handling is all sorts of tricky...
|
||||
if runtime.GOOS == "windows" {
|
||||
// If the path is using Windows-style slashes, URL parses
|
||||
// it into the host field.
|
||||
if u.Path == "" && strings.Contains(u.Host, `\`) {
|
||||
u.Path = u.Host
|
||||
u.Host = ""
|
||||
}
|
||||
}
|
||||
|
||||
// Only do the filepath transformations if the file appears
|
||||
// to actually exist.
|
||||
if _, err := os.Stat(u.Path); err == nil {
|
||||
|
|
Loading…
Reference in New Issue