Skip to content

Commit

Permalink
Reapplying suggestions from review
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Feb 29, 2024
1 parent 9a5a1a1 commit b8a3b02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions rust/lancedb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ num-traits.workspace = true
url.workspace = true
serde = { version = "^1" }
serde_json = { version = "1" }

# For remote feature

reqwest = { version = "0.11.24", features = ["gzip", "json"], optional = true }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions rust/lancedb/src/remote/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ impl RestfulLanceDbClient {
headers.insert(
"Host",
HeaderValue::from_str(&host).map_err(|_| Error::Http {
message: format!("non-ascii table name '{}' provided", db_name),
message: format!("non-ascii database name '{}' provided", db_name),
})?,
);
}
if has_host_override {
headers.insert(
"x-lancedb-database",
HeaderValue::from_str(db_name).map_err(|_| Error::Http {
message: format!("non-ascii table name '{}' provided", db_name),
message: format!("non-ascii database name '{}' provided", db_name),
})?,
);
}
Expand Down

0 comments on commit b8a3b02

Please sign in to comment.