We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccdb398 commit e1835cbCopy full SHA for e1835cb
crates/service/src/routes/request_handler.rs
@@ -12,6 +12,7 @@ use thegraph_core::DeploymentId;
12
use tracing::trace;
13
14
const GRAPH_ATTESTABLE: &str = "graph-attestable";
15
+const GRAPH_INDEXED: &str = "graph-indexed";
16
17
pub async fn request_handler(
18
Path(deployment): Path<DeploymentId>,
@@ -54,5 +55,10 @@ pub async fn request_handler(
54
55
let mut response = Response::new(body);
56
response.extensions_mut().insert(attestation_input);
57
58
+ let graph_indexed = response.headers().get(GRAPH_INDEXED).cloned();
59
+ if let Some(graph_indexed) = graph_indexed {
60
+ response.headers_mut().append(GRAPH_INDEXED, graph_indexed);
61
+ }
62
+
63
Ok(response)
64
}
0 commit comments