[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.

refactor: use try_into for usize cast for safety

Lyna 64018572 a382a694

+3 -1
+3 -1
src/http.rs
··· 59 59 response 60 60 .content_length() 61 61 .unwrap_or(64 * 1024) 62 - .min(max_size.get()) as usize, 62 + .min(max_size.get()) 63 + .try_into() 64 + .unwrap_or(usize::MAX), 63 65 ); 64 66 let mut stream = response.bytes_stream(); 65 67 while let Some(chunk) = stream.next().await {