There was an error while loading. Please reload this page.
1 parent 7a5f07e commit cc4e664Copy full SHA for cc4e664
1 file changed
src/redirect.rs
@@ -977,5 +977,14 @@ mod tests {
977
req.headers().get(AUTHORIZATION),
978
Some(&HeaderValue::from_static("let me in"))
979
);
980
+
981
+ req.headers_mut()
982
+ .insert(COOKIE, HeaderValue::from_static("foo=bar"));
983
+ *req.uri_mut() = Uri::from_static("http://example.com:8443/next");
984
+ let previous = [Uri::from_static("https://example.com:8443/previous")];
985
986
+ remove_sensitive_headers(&mut req, &previous);
987
+ assert_eq!(req.headers().get(AUTHORIZATION), None);
988
+ assert_eq!(req.headers().get(COOKIE), None);
989
}
990
0 commit comments