From c190d93ee29bc36ffdaab714df26050113689b88 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Fri, 14 Apr 2017 17:19:32 +0200 Subject: [PATCH] [fix] use defaultURLScheme if no scheme was specified --- wuzz.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wuzz.go b/wuzz.go index 6ccb7e1..d96d0fa 100644 --- a/wuzz.go +++ b/wuzz.go @@ -1550,7 +1550,7 @@ func (a *App) ParseArgs(g *gocui.Gui, args []string) error { default: u := args[arg_index] if strings.Index(u, "http://") != 0 && strings.Index(u, "https://") != 0 { - u = "http://" + u + u = fmt.Sprintf("%v://%v", a.config.General.DefaultURLScheme, u) } parsed_url, err := url.Parse(u) if err != nil || parsed_url.Host == "" {