Commit faa09215 authored by Jason Song's avatar Jason Song

fix issue #3012

parent be664483
......@@ -180,7 +180,8 @@ public class BOMInputStream extends ProxyInputStream {
if (!boms.contains(bom)) {
throw new IllegalArgumentException("Stream not configure to detect " + bom);
}
return byteOrderMark != null && getBOM().equals(bom);
getBOM();
return byteOrderMark != null && byteOrderMark.equals(bom);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment