1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

fix web-cors example

This commit is contained in:
Nikolay Kim 2018-04-12 20:23:08 -07:00
parent 95091272a6
commit 2f6baf4d31

View File

@ -31,7 +31,7 @@ fn main() {
http::header::ACCEPT,
http::header::CONTENT_TYPE])
.max_age(3600)
.finish().expect("Can not create CORS middleware")
.finish()
.register(r);
r.method(http::Method::POST).a(info);
}))