Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed Jan 11, 2024
1 parent d9219c9 commit 393fd7c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/filter/http_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ impl Filter {

let typed_property = match self.get_typed_property(&selector_item.selector) {
Some(typed_property) => typed_property,
None => TypedProperty::String(
selector_item.default.clone().unwrap_or("".to_string()),
),
None => return None,
};
// todo: for now we send string values as is, not as string literals
let value = match typed_property {
Expand All @@ -162,7 +160,7 @@ impl Filter {
match self.get_property(tokens.iter().map(AsRef::as_ref).collect()) {
None => {
debug!(
"[context_id: {}]: selector not found: {path}, defaulting to ``",
"[context_id: {}]: selector not found: {path}",
self.context_id
);
None
Expand Down

0 comments on commit 393fd7c

Please sign in to comment.