🎨 RESPOND_TRUE related functions return 204 now

This commit is contained in:
EntireTwix 2021-07-11 15:38:23 -07:00
parent 8a23c8fa00
commit 4b6c71354f

View file

@ -20,10 +20,10 @@ static thread_local ondemand::parser parser;
CORS; \ CORS; \
callback(resp) callback(resp)
#define RESPOND_TRUE \ #define RESPOND_TRUE \
static thread_local auto resp = HttpResponse::newCustomHttpResponse(BankResponse(k200OK, "true")); \ static thread_local auto resp = HttpResponse::newCustomHttpResponse(BankResponse(k204NoContent, std::nullopt)); \
CORS; \ CORS; \
CACHE_FOREVER; \ CACHE_FOREVER; \
callback(resp) callback(resp)
#define NAME_PARAM req->getParameter("name") #define NAME_PARAM req->getParameter("name")