fix(serialize-xml): Consume alternate headers as well
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
5c183a79de
commit
db632161ca
@ -796,17 +796,13 @@ public class NativeXmlReader implements Closeable {
|
||||
int unused = nextNonWhitespace(true);
|
||||
pos--;
|
||||
|
||||
if (pos + 5 > limit && !fillBuffer(5)) {
|
||||
if (pos + 5 > limit && !fillBuffer(2)) {
|
||||
return;
|
||||
}
|
||||
|
||||
int p = pos;
|
||||
char[] buf = buffer;
|
||||
if (buf[p] != '<'
|
||||
|| buf[p + 1] != '?'
|
||||
|| buf[p + 2] != 'x'
|
||||
|| buf[p + 3] != 'm'
|
||||
|| buf[p + 4] != 'l') {
|
||||
if (buf[p] != '<' || buf[p + 1] != '?') {
|
||||
return; // not a header!
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user