Add Liana-Version header to remote backend client

close #1216
This commit is contained in:
edouardparis 2024-08-28 11:43:06 +02:00
parent 2253edd70d
commit 9473d4b928

View File

@ -48,7 +48,8 @@ fn request<U: IntoUrl>(
let req = http
.request(method, url)
.header("Authorization", format!("Bearer {}", access_token))
.header("Content-Type", "application/json");
.header("Content-Type", "application/json")
.header("Liana-Version", "0.1");
tracing::debug!("Sending http request: {:?}", req);
req
}