From 2e9748c3efd1ca2a3f0441427a4d101aff082159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 10 Jan 2023 16:22:46 +0800 Subject: [PATCH] Fix abx reader --- common/abx/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/abx/reader.go b/common/abx/reader.go index 429642e..1629572 100644 --- a/common/abx/reader.go +++ b/common/abx/reader.go @@ -25,7 +25,7 @@ func NewReader(content []byte) (xml.TokenReader, bool) { if len(content) < 4 || !bytes.Equal(content[:4], ProtocolMagicVersion0) { return nil, false } - return &Reader{reader: bytes.NewReader(content)}, true + return &Reader{reader: bytes.NewReader(content[4:])}, true } func (r *Reader) Token() (token xml.Token, err error) {