Skip to content

Commit

Permalink
test: update http test_single_header* test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
XmchxUp committed Dec 11, 2024
1 parent e309436 commit 955ccd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pingora-http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8> = vec![];
resp.header_to_h1_wire(&mut buf);
Expand All @@ -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<u8> = vec![];
resp.header_to_h1_wire(&mut buf);
Expand Down

0 comments on commit 955ccd3

Please sign in to comment.