fix: properly handle binary proxied responses, enforce bun usage, proper mobile-friendly frontend

This commit is contained in:
2026-01-05 15:10:23 -06:00
parent 96595b073d
commit 553bae5a7f
4 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -503,7 +503,7 @@ async fn isr_handler(State(state): State<Arc<AppState>>, req: Request) -> Respon
async fn proxy_to_bun(
url: &str,
state: Arc<AppState>,
) -> Result<(StatusCode, HeaderMap, String), ProxyError> {
) -> Result<(StatusCode, HeaderMap, axum::body::Bytes), ProxyError> {
let client = if state.unix_client.is_some() {
state.unix_client.as_ref().unwrap()
} else {
@@ -532,7 +532,7 @@ async fn proxy_to_bun(
}
}
let body = response.text().await.map_err(ProxyError::Network)?;
let body = response.bytes().await.map_err(ProxyError::Network)?;
Ok((status, headers, body))
}