diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-06 12:21:15 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-06 12:21:15 +0200 |
commit | 8c6114c3d306acebca908f37861e2c03d8562032 (patch) | |
tree | 41431ed388b7eac30e56dfdca829a9f9d2fef03a /src/proxy_config.rs | |
parent | 6383d9877282b98fa058ea4101ca6a8578c7514e (diff) | |
download | tricot-8c6114c3d306acebca908f37861e2c03d8562032.tar.gz tricot-8c6114c3d306acebca908f37861e2c03d8562032.zip |
Try to clean up code and to fix WebSocket problemsdocker-38
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r-- | src/proxy_config.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs index bf7ae32..e45cc7b 100644 --- a/src/proxy_config.rs +++ b/src/proxy_config.rs @@ -355,16 +355,16 @@ pub fn spawn_proxy_config_task( #[cfg(test)] mod tests { - use super::*; + use super::*; - #[test] - fn test_parse_tricot_add_header_tag() { - match parse_tricot_add_header_tag("tricot-add-header Content-Security-Policy default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'") { + #[test] + fn test_parse_tricot_add_header_tag() { + match parse_tricot_add_header_tag("tricot-add-header Content-Security-Policy default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'") { Some((name, value)) => { assert_eq!(name, "Content-Security-Policy"); assert_eq!(value, "default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'"); } _ => panic!("Passed a valid tag but the function says it is not valid") } - } + } } |