mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
requesthandler: Allow empty vendor request data
This commit is contained in:
parent
ddd139255b
commit
96032e0e8c
@ -178,7 +178,7 @@ RequestResult RequestHandler::CallVendorRequest(const Request &request)
|
||||
|
||||
OBSDataAutoRelease requestData = obs_data_create();
|
||||
if (request.Contains("requestData")) {
|
||||
if (!request.ValidateOptionalObject("requestData", statusCode, comment))
|
||||
if (!request.ValidateOptionalObject("requestData", statusCode, comment, true))
|
||||
return RequestResult::Error(statusCode, comment);
|
||||
|
||||
requestData = Utils::Json::JsonToObsData(request.RequestData["requestData"]);
|
||||
|
Loading…
Reference in New Issue
Block a user