From aaab707cf6c0e4b090efc7b6f9d04641e54f89f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Sverre=20Lien=20Sell=C3=A6g?= Date: Sun, 23 May 2021 15:06:51 +0200 Subject: [PATCH] rename variable --- src/store.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store.cpp b/src/store.cpp index 93772af..5f1950e 100644 --- a/src/store.cpp +++ b/src/store.cpp @@ -78,9 +78,10 @@ int Application::run() { return response::not_found(response); } - const auto j = dat.process(data); + const auto json_response = dat.process(data); - response->write(Status::success_ok, data.dump(), + response->write(Status::client_error_precondition_required, + json_response.dump(), {header_access_control, header_application_data}); };