mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-09 23:51:28 +03:00
copilot review: test function name
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -2874,7 +2874,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_parse_simple_header_overrides_content_type_with_json() {
|
fn test_parse_simple_header_ignores_custom_content_type() {
|
||||||
let headers = parse_simple_header("Content-Type: text/plain");
|
let headers = parse_simple_header("Content-Type: text/plain");
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
@@ -2923,7 +2923,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_tcp_proxy_log_target_redacts_path_and_query() {
|
fn test_tcp_proxy_log_target_redacts_query_only() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
tcp_proxy_log_target("https://example.com/api/heartbeat?token=secret"),
|
tcp_proxy_log_target("https://example.com/api/heartbeat?token=secret"),
|
||||||
"https://example.com/api/heartbeat"
|
"https://example.com/api/heartbeat"
|
||||||
|
|||||||
Reference in New Issue
Block a user