Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Oct 11, 2022
1 parent 931bece commit 3a4191b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions iroh-gateway/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ mod tests {
#[test]
fn test_default_headers() {
let headers = default_headers();
assert_eq!(headers.len(), 5);
assert_eq!(headers.len(), 4);
let h = headers.get(&ACCESS_CONTROL_ALLOW_ORIGIN).unwrap();
assert_eq!(h, "*");
}
Expand Down Expand Up @@ -228,10 +228,6 @@ mod tests {
"if-none-match, accept, cache-control, range, service-worker",
),
);
expect.insert(
"cache-control".to_string(),
Value::new(None, "no-cache, no-transform"),
);
expect.insert("accept-ranges".to_string(), Value::new(None, "none"));
let got = collect_headers(&default_headers()).unwrap();
assert_eq!(expect, got);
Expand Down
2 changes: 1 addition & 1 deletion iroh-gateway/src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ mod tests {
let rf = ResponseFormat::try_from("car").unwrap();
let mut headers = HeaderMap::new();
rf.write_headers(&mut headers);
assert_eq!(headers.len(), 4);
assert_eq!(headers.len(), 3);
assert_eq!(headers.get(&CONTENT_TYPE).unwrap(), &CONTENT_TYPE_IPLD_CAR);
assert_eq!(
headers.get(&HEADER_X_CONTENT_TYPE_OPTIONS).unwrap(),
Expand Down

0 comments on commit 3a4191b

Please sign in to comment.