From 6fa8950cf867a8e1246c2f2c90a4047ae5175f6f Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Wed, 30 Oct 2019 14:36:53 -0400 Subject: Replace Json handler with handler for status codes --- src/routes/callback.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes/callback.rs') diff --git a/src/routes/callback.rs b/src/routes/callback.rs index e81a080..4a258ae 100644 --- a/src/routes/callback.rs +++ b/src/routes/callback.rs @@ -11,7 +11,7 @@ pub fn callback(req: HttpRequest, query: Query>) -> Json content: query.into_inner(), }; - Ok(Json(callback.as_outgoing())) + Ok(FormatMsg::ok(callback.as_outgoing())) } #[cfg(test)] -- cgit