Remove isLikelyText detection from buffer content type utility (#6870)

This commit is contained in:
Abhishek S Lal
2026-01-22 12:40:57 +05:30
committed by GitHub
parent 0fb605a684
commit 9e1c58ab6f

View File

@@ -250,11 +250,6 @@ export const detectContentTypeFromBuffer = (buffer) => {
return 'application/gzip';
}
// Check if it's likely text (UTF-8)
if (isLikelyText(buffer.slice(0, Math.min(512, buffer.length)))) {
return 'text/plain';
}
return null;
};