Skip to content

Commit 98fcc63

Browse files
committed
feat(bootstrapper): disable webview2 http compression
1 parent f263fd5 commit 98fcc63

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cmd/vinegar/bootstrapper_setup_pfx.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"errors"
55
"fmt"
6+
"net/http"
67
"os"
78
"path/filepath"
89
"slices"
@@ -134,6 +135,7 @@ func (b *bootstrapper) stepWebviewDownload() error {
134135

135136
stop := b.performing()
136137
b.message("Fetching WebView", "upload", b.cfg.Studio.WebView)
138+
webview2.Client.Transport.(*http.Transport).DisableCompression = true
137139
d, err := webview2.Stable.Runtime(b.cfg.Studio.WebView, "x64")
138140
if err != nil {
139141
return fmt.Errorf("fetch: %w", err)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/lmittmann/tint v1.1.2
1818
github.com/sewnie/rbxbin v0.0.0-20251006114257-d7e318b45616
1919
github.com/sewnie/rbxweb v0.0.0-20250923154144-a174c75bba5d
20-
github.com/sewnie/wine v0.0.0-20251014081238-11b6564ffdf5
20+
github.com/sewnie/wine v0.0.0-20251014113431-dd1f083b22a5
2121
)
2222

2323
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ github.com/sewnie/rbxbin v0.0.0-20251006114257-d7e318b45616 h1:saD5MNBSS4LsP7met
2424
github.com/sewnie/rbxbin v0.0.0-20251006114257-d7e318b45616/go.mod h1:Ksjrzt8x1UY2ot2QdDrJXYhTEQOjWH8US0CHgKcH+QY=
2525
github.com/sewnie/rbxweb v0.0.0-20250923154144-a174c75bba5d h1:9+O1OzqsVhNJVPewE7oJqVymRlm+ej8iArdafc7vfKs=
2626
github.com/sewnie/rbxweb v0.0.0-20250923154144-a174c75bba5d/go.mod h1:nSfgVAspLMsixAWAfuTXAjBsiTyMchPxTx+jD3TrM20=
27-
github.com/sewnie/wine v0.0.0-20251014081238-11b6564ffdf5 h1:SvjAiNZ0l43P5fyJ5hoVRZLFte/uxeDLz2gcjEB0fYY=
28-
github.com/sewnie/wine v0.0.0-20251014081238-11b6564ffdf5/go.mod h1:IbKiMCPd3jWSTrVXxDh4ggy3bvcaNUtI4VnPG9mRYoY=
27+
github.com/sewnie/wine v0.0.0-20251014113431-dd1f083b22a5 h1:Uf6+9mV5KOWdntzBY8MBdzXUFbuOyWTMEivXqVSceV4=
28+
github.com/sewnie/wine v0.0.0-20251014113431-dd1f083b22a5/go.mod h1:IbKiMCPd3jWSTrVXxDh4ggy3bvcaNUtI4VnPG9mRYoY=
2929
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
3030
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
3131
golang.org/x/sync v0.17.0 h1:l60nONMj9l5drqw6jlhIELNv9I0A4OFgRsG9k2oT9Ug=

0 commit comments

Comments
 (0)