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 59973bf commit bf97f2dCopy full SHA for bf97f2d
crates/service/src/routes/request_handler.rs
@@ -13,6 +13,8 @@ use reqwest::header::CONTENT_TYPE;
13
use thegraph_core::DeploymentId;
14
use tracing::trace;
15
16
+const GRAPH_ATTESTABLE: &str = "graph-attestable";
17
+
18
pub async fn request_handler(
19
Path(deployment): Path<DeploymentId>,
20
State(state): State<SubgraphServiceState>,
@@ -36,7 +38,7 @@ pub async fn request_handler(
36
38
37
39
let attestable = response
40
.headers()
- .get("graph-attestable")
41
+ .get(GRAPH_ATTESTABLE)
42
.map_or(false, |value| {
43
value.to_str().map(|value| value == "true").unwrap_or(false)
44
});
0 commit comments