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