mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 05:41:50 +01:00
fix cors tests
This commit is contained in:
parent
dab918261c
commit
eb8052b936
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user