From efb58ff4a65d76b2c200a05ad3c9d882790df9bb Mon Sep 17 00:00:00 2001 From: stffabi Date: Wed, 20 Sep 2023 22:40:46 +0200 Subject: [PATCH] [v2] Bump go-webview2 to 1.0.7 --- v2/go.mod | 2 +- v2/go.sum | 4 ++-- v2/pkg/assetserver/webview/request_windows.go | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/v2/go.mod b/v2/go.mod index f218f72a6ab..93e178d810c 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -33,7 +33,7 @@ require ( github.com/tc-hib/winres v0.1.5 github.com/tidwall/sjson v1.1.7 github.com/tkrajina/go-reflector v0.5.6 - github.com/wailsapp/go-webview2 v1.0.6 + github.com/wailsapp/go-webview2 v1.0.7 github.com/wailsapp/mimetype v1.4.1 github.com/wzshiming/ctc v1.2.3 golang.org/x/mod v0.12.0 diff --git a/v2/go.sum b/v2/go.sum index c5a9c3cd101..59a62541150 100644 --- a/v2/go.sum +++ b/v2/go.sum @@ -214,8 +214,8 @@ github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyC github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/wailsapp/go-webview2 v1.0.6 h1:7qW+wVcepvlLh8yIFI52tLMAl1Le9jdeQBu+Pej+MKY= -github.com/wailsapp/go-webview2 v1.0.6/go.mod h1:Uk2BePfCRzttBBjFrBmqKGJd41P6QIHeV9kTgIeOZNo= +github.com/wailsapp/go-webview2 v1.0.7 h1:s95+7irJsAsTy1RsjJ6N0cYX7tZ4gP7Uzawds0L2urs= +github.com/wailsapp/go-webview2 v1.0.7/go.mod h1:Uk2BePfCRzttBBjFrBmqKGJd41P6QIHeV9kTgIeOZNo= github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs= github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o= github.com/wzshiming/ctc v1.2.3 h1:q+hW3IQNsjIlOFBTGZZZeIXTElFM4grF4spW/errh/c= diff --git a/v2/pkg/assetserver/webview/request_windows.go b/v2/pkg/assetserver/webview/request_windows.go index 3085aaf3bca..fa83cd8d75a 100644 --- a/v2/pkg/assetserver/webview/request_windows.go +++ b/v2/pkg/assetserver/webview/request_windows.go @@ -24,7 +24,8 @@ func NewRequest(env *edge.ICoreWebView2Environment, args *edge.ICoreWebView2WebR invokeSync: invokeSync, } - r.response, err = env.CreateWebResourceResponse(nil, http.StatusInternalServerError, "") + code := http.StatusInternalServerError + r.response, err = env.CreateWebResourceResponse(nil, code, http.StatusText(code), "") if err != nil { return nil, fmt.Errorf("CreateWebResourceResponse failed: %s", err) }