Fix request URI tests.

This commit is contained in:
Jeb Rosen 2019-12-15 11:39:18 -08:00 committed by Sergio Benitez
parent 49f4641871
commit f442642ec2
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ macro_rules! assert_headers {
// Dispatch the request and check that the headers are what we expect.
let config = Config::development();
let r = Rocket::custom(config);
let req = Request::from_hyp(&r, h_method, h_headers, h_uri, h_addr).unwrap();
let req = Request::from_hyp(&r, h_method, h_headers, &h_uri, h_addr).unwrap();
let actual_headers = req.headers();
for (key, values) in expected.iter() {
let actual: Vec<_> = actual_headers.get(key).collect();