Browse Source

fixed wrong response status identifier

master
Ivan Polyakov 2 years ago
parent
commit
e305537e7a
  1. 2
      config.mk
  2. 2
      cxx/Response.cxx

2
config.mk

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
VERSION=0.3.0
VERSION=0.3.1
#arg Installation prefix
PREFIX=/usr/local

2
cxx/Response.cxx

@ -29,7 +29,7 @@ void Response::render(const char *path, nlohmann::json data) @@ -29,7 +29,7 @@ void Response::render(const char *path, nlohmann::json data)
body(result.c_str());
} catch (inja::RenderError &e) {
std::cerr << e.what() << std::endl;
status(internal_server_error);
status(rpd_res_st_internal_server_error);
return;
}
}

Loading…
Cancel
Save