We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87085a8 commit cedf83cCopy full SHA for cedf83c
src/main/java/org/jsoup/helper/HttpConnection.java
@@ -490,8 +490,10 @@ private static String fixHeaderEncoding(String val) {
490
private static boolean looksLikeUtf8(byte[] input) {
491
int i = 0;
492
// BOM:
493
- if (input.length >= 3 && (input[0] & 0xFF) == 0xEF
494
- && (input[1] & 0xFF) == 0xBB & (input[2] & 0xFF) == 0xBF) {
+ if (input.length >= 3
+ && (input[0] & 0xFF) == 0xEF
495
+ && (input[1] & 0xFF) == 0xBB
496
+ && (input[2] & 0xFF) == 0xBF) {
497
i = 3;
498
}
499
0 commit comments