1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-25 20:51:09 +00:00
This commit is contained in:
Felix Ableitner 2024-10-28 15:19:21 +01:00
parent fc3e94bea0
commit 4f629f40b5
2 changed files with 2 additions and 3 deletions

View file

@ -28,8 +28,7 @@ pub async fn file_and_error_handler(
.insert("accept-encoding", encodings.clone());
}
let res = get_static_file(Request::from_parts(static_parts, Body::empty()), &root)
.await?;
let res = get_static_file(Request::from_parts(static_parts, Body::empty()), &root).await?;
if res.status() == StatusCode::OK {
Ok(res.into_response())

View file

@ -22,7 +22,7 @@ use activitypub_federation::{
http_signatures::generate_actor_keypair,
};
use api::api_routes;
use assets::{file_and_error_handler};
use assets::file_and_error_handler;
use axum::{
body::Body,
http::{HeaderValue, Request},