diff options
author | Keuin <[email protected]> | 2023-07-29 14:30:30 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-07-29 20:16:23 +0800 |
commit | 7153cf3e4288d4395c984e6648df9bafdc4e833f (patch) | |
tree | a1cab8d1038b36ddafc6ffcdd2a6dafc373d5d17 /danmaku/client.go | |
parent | 727f1399a91648f9bb2bab400962ed99a1962bda (diff) |
Use Brotli to follow the latest Bilibili web implementation
Diffstat (limited to 'danmaku/client.go')
-rw-r--r-- | danmaku/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/danmaku/client.go b/danmaku/client.go index 3862154..a94afbf 100644 --- a/danmaku/client.go +++ b/danmaku/client.go @@ -88,7 +88,7 @@ func (d *DanmakuClient) Disconnect() error { } func (d *DanmakuClient) Authenticate(roomId types.RoomId, authKey string) error { - pkg := dmpkg.NewAuth(dmpkg.ProtoPlainJson, roomId, authKey) + pkg := dmpkg.NewAuth(dmpkg.ProtoBrotli, roomId, authKey) data, err := pkg.Marshal() if err != nil { return fmt.Errorf("exchange marshal failed: %w", err) |