From 55ddbf476574fcef8344f2cafc6703e3673c158a Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 10 Jan 2018 10:08:23 -0800 Subject: [PATCH] sloppy copypasta --- common/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/config.go b/common/config.go index f1666058c..2b0de0c5c 100644 --- a/common/config.go +++ b/common/config.go @@ -73,9 +73,9 @@ func DownloadableURL(original string) (string, error) { if runtime.GOOS == "windows" { // If the path is using Windows-style slashes, URL parses // it into the host field. - if url.Path == "" && strings.Contains(url.Host, `\`) { - url.Path = url.Host - url.Host = "" + if u.Path == "" && strings.Contains(u.Host, `\`) { + u.Path = u.Host + u.Host = "" } } // Only do the filepath transformations if the file appears