Skip to content

Commit 517aec4

Browse files
committed
fixup! k6/browser: allow Invalid UTF-8 as recommended by cdproto author
1 parent b670d77 commit 517aec4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/js/modules/k6/browser/common/connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ type msgID struct {
3434
id int64
3535
}
3636

37+
//nolint:gochecknoglobals
3738
var defaultJSONV2Options = jsonv2.JoinOptions(
3839
jsonv2.DefaultOptionsV2(),
3940
jsontext.AllowInvalidUTF8(true),

internal/js/modules/k6/browser/tests/ws/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import (
2323
"golang.org/x/net/http2"
2424
)
2525

26+
//nolint:gochecknoglobals
2627
var defaultJSONV2Options = jsonv2.JoinOptions(
2728
jsonv2.DefaultOptionsV2(),
2829
jsontext.AllowInvalidUTF8(true),

0 commit comments

Comments
 (0)