File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
terraform/docs-rs/fastly-compute-docs-rs/src Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ const X_ROBOTS_TAG: HeaderName = HeaderName::from_static("x-robots-tag");
1818const X_ORIGIN_AUTH : HeaderName = HeaderName :: from_static ( "x-origin-auth" ) ;
1919const X_COMPRESS_HINT : HeaderName = HeaderName :: from_static ( "x-compress-hint" ) ;
2020
21+ const X_RLNG_SOURCE_CDN : HeaderName = HeaderName :: from_static ( "x-rlng-source-cdn" ) ;
22+
2123#[ fastly:: main]
2224fn main ( mut req : Request ) -> Result < Response , Error > {
2325 let secrets = SecretStore :: open ( DOCS_RS_SECRET_STORE ) . expect ( "failed to open secret store" ) ;
@@ -71,6 +73,7 @@ fn main(mut req: Request) -> Result<Response, Error> {
7173 }
7274
7375 req. set_header ( X_ORIGIN_AUTH , origin_auth. as_ref ( ) ) ;
76+ req. set_header ( X_RLNG_SOURCE_CDN , "fastly" ) ;
7477
7578 // Send request to backend
7679 let mut resp = req. send ( DOCS_RS_BACKEND ) ?;
You can’t perform that action at this time.
0 commit comments