From dadf5f641ba5fc5c3ec8b604ea3bd4c1ff30112c Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 26 Nov 2024 15:49:44 -0700 Subject: [PATCH] https request fix path separator --- fclauncher/https.go | 2 ++ 1 file changed, 2 insertions(+) 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