Hacker News new | ask | show | jobs
by chmln 1882 days ago
It uses the shared mime database, which in turn relies on both file type and content to detect the mime.