Fix abx reader

This commit is contained in:
世界 2023-01-10 16:22:46 +08:00
parent bb02986064
commit 2e9748c3ef
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -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) {