🐛 static thread_local document breaks parsing overtime

This commit is contained in:
EntireTwix 2021-07-21 12:31:02 -07:00
parent 6da7cd087c
commit d544a10bf1

View file

@ -9,7 +9,7 @@
static thread_local ondemand::parser parser; static thread_local ondemand::parser parser;
#define SIMD_JSON_GEN \ #define SIMD_JSON_GEN \
static thread_local simdjson::padded_string input(req->getBody()); \ static thread_local simdjson::padded_string input(req->getBody()); \
static thread_local auto doc = parser.iterate(input) auto doc = parser.iterate(input);
#define RESPONSE_PARSE(R) \ #define RESPONSE_PARSE(R) \
static thread_local auto resp = HttpResponse::newCustomHttpResponse(R); \ static thread_local auto resp = HttpResponse::newCustomHttpResponse(R); \