chore: format

This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-25 16:53:53 -04:00
1 parent f71e9570c0
commit 5c62cc0517
99 files changed
+12026 -5908

No files matched your search

+4 -3
View File
@@ -2205,9 +2205,10 @@ async def _fetch_url(url: str, max_size_mb: int | str | None) -> dict:
if not is_attachment and base_content_type in {'', 'application/octet-stream', 'binary/octet-stream'}:
sample = first_chunk[:4096].lstrip().lower()
if sample.startswith(
(b'<!doctype html', b'<html', b'<head', b'<body', b'<?xml')
) or b'<html' in sample[:1024]:
if (
sample.startswith((b'<!doctype html', b'<html', b'<head', b'<body', b'<?xml'))
or b'<html' in sample[:1024]
):
return {'kind': 'web'}
if max_bytes and content_length: