Skip to content

Commit c13e002

Browse files
author
Yoshiki Shibukawa
committed
Fix Windows code to allow multiple GET parameters
1 parent 5a9dc85 commit c13e002

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

browser_windows.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package browser
22

3+
import (
4+
"strings"
5+
)
6+
37
func openBrowser(url string) error {
4-
return runCmd("cmd", "/c", "start", url)
8+
r := strings.NewReplacer("&", "^&")
9+
return runCmd("cmd", "/c", "start", r.Replace(url))
510
}

0 commit comments

Comments
 (0)