Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Set cache header for immutable blob endpoint
✗ CI failure Rūdolfs Ošiņš committed 2 years ago
commit cf97a65e850a2d779d0b6c5834b699e0b511a4af
parent 25c6660a59c621de1ec406e4f9b2ccfbd21e1b90
1 failed (1 total) View logs
1 file changed +1 -1
modified radicle-httpd/src/api/v1/projects.rs
@@ -539,7 +539,7 @@ async fn blob_handler(
    let blob = repo.blob(sha, &path)?;
    let response = api::json::blob(&blob, &path);

-
    Ok::<_, Error>(Json(response))
+
    Ok::<_, Error>(immutable_response(response))
}

/// Get project readme.