Skip to content

Commit

Permalink
fix: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Jan 12, 2025
1 parent 5ae2a9c commit b137266
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/plugin/jwt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ auth_path = "/login"
.unwrap();

assert_eq!(
r#"ResponseHeader { base: Parts { status: 200, version: HTTP/1.1, headers: {"content-type": "application/json; charset=utf-8", "transfer-encoding": "Chunked"} }, header_name_map: None, reason_phrase: None }"#,
r#"ResponseHeader { base: Parts { status: 200, version: HTTP/1.1, headers: {"content-type": "application/json; charset=utf-8", "transfer-encoding": "chunked"} }, header_name_map: None, reason_phrase: None }"#,
format!("{upstream_response:?}")
);
assert_eq!(true, ctx.modify_response_body.is_some());
Expand Down
6 changes: 0 additions & 6 deletions src/plugin/sub_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ struct SubFilterParams {
///
/// # Returns
/// * `Option<SubFilterParams>` - Parsed parameters or None if parsing fails
///
/// # Examples
/// ```
/// let rule = "subs_filter 'http://' 'https://' ig";
/// let params = parse_subs_filter(rule);
/// ```
fn parse_subs_filter(rule: &str) -> Option<SubFilterParams> {
let captures = SUBS_FILTER_REGEX.captures(rule)?;

Expand Down

0 comments on commit b137266

Please sign in to comment.