1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-30 05:21:09 +00:00

fix cors tests

This commit is contained in:
Nikolay Kim 2018-01-11 20:20:50 -08:00
parent dab918261c
commit eb8052b936

View file

@ -841,7 +841,7 @@ mod tests {
let resp: HttpResponse = HTTPOk.into(); let resp: HttpResponse = HTTPOk.into();
let resp = cors.response(&mut req, resp).unwrap().response(); let resp = cors.response(&mut req, resp).unwrap().response();
assert_eq!( assert_eq!(
&b"https://www.example.com/"[..], &b"https://www.example.com"[..],
resp.headers().get(header::ACCESS_CONTROL_ALLOW_ORIGIN).unwrap().as_bytes()); resp.headers().get(header::ACCESS_CONTROL_ALLOW_ORIGIN).unwrap().as_bytes());
} }
} }