[MIRROR ONLY] A correct and efficient ATProto blob proxy for secure content delivery. codeberg.org/Blooym/porxie
36
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: add future note on mime sniff

Lyna 4c0298a1 6a44c407

+3
+3
src/blob_service.rs
··· 245 245 246 246 // Infer MIME type from content bytes rather than headers; this is fallible 247 247 // and falls back to application/octet-stream if the type is unrecognised. 248 + // 249 + // TODO: Merge this with the download stream process to reject bad MIMEs 250 + // early? 248 251 let mime_type = sniff_mime(&validated_bytes); 249 252 if !is_mime_allowed(&mime_type, allowed_mimetypes) { 250 253 tracing::debug!("blob was inferred to be a disallowed mime type: {mime_type}");