Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KeXiangWang committed Nov 22, 2024
1 parent 68d36e9 commit 6eae2f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/binder/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Binder {
// - secret name
// - the name of the payload column
// TODO(Kexiang): Generated columns or INCLUDE clause should be supported.
if ident.real_value() == "headers".to_string() {
if ident.real_value() == *"headers" {
Ok(InputRef::new(0, DataType::Jsonb).into())
} else if ident.real_value() == ctx.secret_name {
Ok(InputRef::new(1, DataType::Varchar).into())
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/webhook/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl IntoResponse for WebhookError {
pub(crate) fn header_map_to_json(headers: &HeaderMap) -> JsonbVal {
let mut header_map = HashMap::new();

for (key, value) in headers.iter() {
for (key, value) in headers {
let key = key.as_str().to_string();
let value = value.to_str().unwrap_or("").to_string();
header_map.insert(key, value);
Expand Down

0 comments on commit 6eae2f5

Please sign in to comment.