stephb9959
2022-09-02 08:57:12 -07:00
parent 6df780dba3
commit 97c2af83fd
4 changed files with 6 additions and 2 deletions

View File

@@ -136,6 +136,7 @@ namespace OpenWifi{
void RESTAPI_inventory_handler::DoPost() {
std::string SerialNumber = GetBinding(RESTAPI::Protocol::SERIALNUMBER,"");
Poco::toLowerInPlace(SerialNumber);
if(SerialNumber.empty()) {
return BadRequest(RESTAPI::Errors::MissingSerialNumber);
}