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.
2 parents 3e6b5cc + c6b7c13 commit 9f1cc50Copy full SHA for 9f1cc50
libsql/src/database/builder.rs
@@ -399,9 +399,14 @@ cfg_replication! {
399
url.to_string()
400
};
401
let req = http::Request::get(format!("{prefix}/info"))
402
- .header("Authorization", format!("Bearer {}", auth_token))
403
- .body(hyper::Body::empty())
404
- .unwrap();
+ .header("Authorization", format!("Bearer {}", auth_token));
+
+ let req = if let Some(ref remote_encryption) = remote_encryption {
405
+ req.header("x-turso-encryption-key", remote_encryption.key.as_string())
406
+ } else {
407
+ req
408
+ };
409
+ let req = req.body(hyper::Body::empty()).unwrap();
410
411
let res = client
412
.request(req)
0 commit comments