diff --git a/src/rest_api/helpers.rs b/src/rest_api/helpers.rs index a8efcef..d6e5132 100644 --- a/src/rest_api/helpers.rs +++ b/src/rest_api/helpers.rs @@ -15,7 +15,11 @@ where T: Serialize, { match serde_json::to_string(data) { - Ok(response) => Ok(Either::A(HttpResponse::Ok().body(response))), + Ok(response) => Ok(Either::A( + HttpResponse::Ok() + .content_type("application/json") + .body(response), + )), Err(e) => error_500(e), } }