From 2f6baf4d31edca9ba5a9aec86a3979de18033998 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 12 Apr 2018 20:23:08 -0700 Subject: [PATCH] fix web-cors example --- web-cors/backend/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-cors/backend/src/main.rs b/web-cors/backend/src/main.rs index 599be2c9..fd32cb15 100644 --- a/web-cors/backend/src/main.rs +++ b/web-cors/backend/src/main.rs @@ -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); }))