diff --git a/src/routes.rs b/src/routes.rs index 7698bdd..7a2c477 100644 --- a/src/routes.rs +++ b/src/routes.rs @@ -250,7 +250,7 @@ fn construct_response(cached: &CachedImage) -> ServerResponse { let data: Vec> = cached .data .to_vec() - .chunks(1024) + .chunks(1460) // TCP MSS default size .map(|v| Ok(Bytes::from(v.to_vec()))) .collect(); let mut resp = HttpResponse::Ok();