Merge #1239: Add Liana-Version header to remote backend client

9473d4b9280cd62e89c70a1085904ece448ad6f9 Add Liana-Version header to remote backend client (edouardparis)

Pull request description:

  close #1216

ACKs for top commit:
  edouardparis:
    Self-ACK 9473d4b9280cd62e89c70a1085904ece448ad6f9

Tree-SHA512: 708c4c739c8ea17fd0fb5847490b59205744cbc13e274b9699b22ec247657a47264d0979d2f0dcea7b65d35e09ac67d4c30cd00f1f51e1cdc800098b1bdd1261
This commit is contained in:
edouardparis 2024-08-28 17:17:42 +02:00
commit abeeddc1a8
No known key found for this signature in database
GPG Key ID: E65F7A089C20DC8F

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
}