diff --git a/fclauncher/https.go b/fclauncher/https.go index a64bb2a..25f4a36 100644 --- a/fclauncher/https.go +++ b/fclauncher/https.go @@ -4,6 +4,7 @@ import ( "context" "io" "net/http" + "strings" "github.com/wailsapp/wails/v2/pkg/runtime" ) @@ -11,6 +12,7 @@ import ( const BlockSize = 1024 * 64 func HttpDownload(path string, out io.Writer, ctx context.Context) error { + path = strings.ReplaceAll(path, "\\", "/") res, err := http.Get("https://fclauncher.piwalker.net/fclauncher/" + path) if err != nil { return err