mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-03 12:17:46 +00:00
Framework update.
This commit is contained in:
@@ -1813,8 +1813,10 @@ namespace OpenWifi {
|
|||||||
Poco::Thread::current()->setName("WebServerThread_" + std::to_string(TransactionId_));
|
Poco::Thread::current()->setName("WebServerThread_" + std::to_string(TransactionId_));
|
||||||
|
|
||||||
if(Request->getContentLength()>0) {
|
if(Request->getContentLength()>0) {
|
||||||
|
if(Request->getContentType().find("application/json")!=std::string::npos) {
|
||||||
ParsedBody_ = IncomingParser_.parse(Request->stream()).extract<Poco::JSON::Object::Ptr>();
|
ParsedBody_ = IncomingParser_.parse(Request->stream()).extract<Poco::JSON::Object::Ptr>();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(RateLimited_ && RESTAPI_RateLimiter()->IsRateLimited(RequestIn,MyRates_.Interval, MyRates_.MaxCalls)) {
|
if(RateLimited_ && RESTAPI_RateLimiter()->IsRateLimited(RequestIn,MyRates_.Interval, MyRates_.MaxCalls)) {
|
||||||
return UnAuthorized("Rate limit exceeded.",RATE_LIMIT_EXCEEDED);
|
return UnAuthorized("Rate limit exceeded.",RATE_LIMIT_EXCEEDED);
|
||||||
|
|||||||
Reference in New Issue
Block a user