diff --git a/pingora-http/src/lib.rs b/pingora-http/src/lib.rs index d57998d17..90b71e439 100644 --- a/pingora-http/src/lib.rs +++ b/pingora-http/src/lib.rs @@ -651,7 +651,7 @@ mod tests { assert_eq!(buf, b"FoO: Bar\r\n"); let mut resp = ResponseHeader::new(None); - req.insert_header("foo", "bar").unwrap(); + resp.insert_header("foo", "bar").unwrap(); resp.insert_header("FoO", "Bar").unwrap(); let mut buf: Vec = vec![]; resp.header_to_h1_wire(&mut buf); @@ -668,7 +668,7 @@ mod tests { assert_eq!(buf, b"foo: Bar\r\n"); let mut resp = ResponseHeader::new_no_case(None); - req.insert_header("foo", "bar").unwrap(); + resp.insert_header("foo", "bar").unwrap(); resp.insert_header("FoO", "Bar").unwrap(); let mut buf: Vec = vec![]; resp.header_to_h1_wire(&mut buf);