From 710d8079777ea4903537c5db9c04cbfe5112e65c Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 6 May 2022 10:01:43 -0700 Subject: [PATCH] Framework update. --- src/framework/MicroService.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/framework/MicroService.h b/src/framework/MicroService.h index 8cf5115..01c4eef 100644 --- a/src/framework/MicroService.h +++ b/src/framework/MicroService.h @@ -1813,7 +1813,9 @@ namespace OpenWifi { Poco::Thread::current()->setName("WebServerThread_" + std::to_string(TransactionId_)); if(Request->getContentLength()>0) { - ParsedBody_ = IncomingParser_.parse(Request->stream()).extract(); + if(Request->getContentType().find("application/json")!=std::string::npos) { + ParsedBody_ = IncomingParser_.parse(Request->stream()).extract(); + } } if(RateLimited_ && RESTAPI_RateLimiter()->IsRateLimited(RequestIn,MyRates_.Interval, MyRates_.MaxCalls)) {