From eb8052b9360e109d10f4c64dde5344e57899b356 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 11 Jan 2018 20:20:50 -0800 Subject: [PATCH] fix cors tests --- src/middleware/cors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/cors.rs b/src/middleware/cors.rs index 49f74c722..b04c81bbc 100644 --- a/src/middleware/cors.rs +++ b/src/middleware/cors.rs @@ -841,7 +841,7 @@ mod tests { let resp: HttpResponse = HTTPOk.into(); let resp = cors.response(&mut req, resp).unwrap().response(); assert_eq!( - &b"https://www.example.com/"[..], + &b"https://www.example.com"[..], resp.headers().get(header::ACCESS_CONTROL_ALLOW_ORIGIN).unwrap().as_bytes()); } }