nicoscandolo opened a new pull request, #2251: URL: https://github.com/apache/stormcrawler/pull/2251
Fixes #2250 `CharsetIdentification` read the HTTP `Content-Type` without `protocol.md.prefix`, so the charset declared by the server was never seen and UTF-8 pages without a meta charset in the detection window could be decoded as ISO-8859-1. - `getCharset` and `getCharsetFast` get an overload that takes the protocol metadata prefix; the existing signatures delegate with an empty prefix, so other callers are unchanged. - `JSoupParserBolt` passes `protocolMetadataPrefix`, the same prefix it already uses to read the mime type. - New test `JSoupParserBoltTest#prefixedContentTypeCharsetIsUsed`; the mocked call in `charsetDetectionFailureIsReportedAsParseError` now matches the new signature. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
