diff --git a/f9/src/app.rs b/f9/src/app.rs index edeb90c..7dd4799 100644 --- a/f9/src/app.rs +++ b/f9/src/app.rs @@ -55,7 +55,7 @@ struct IMMsgNode { struct HttpContext { id: u64, - //req: &HttpRequest, + query_str: String, add_tick: i64, handled: bool, rsp: String @@ -66,7 +66,7 @@ async fn index(data: Data>, req: HttpRequest) -> impl Responder let context = Arc::new( Mutex::new(HttpContext{ id: 0, - //req: &req, + query_str: String::from(req.query_string()), add_tick: 0, handled: false, rsp: "".to_string()