Answer incorrect web stream requests (#982)

Closes #916
This commit is contained in:
Mr-DaveDev
2019-08-13 20:18:23 -06:00
committed by Mr-Dave
parent ddec009f57
commit 56eda6b63c

6
webu.c
View File

@@ -1297,9 +1297,6 @@ static int webu_answer_strm(void *cls
return MHD_YES;
}
/* Do not answer a request until the motion loop has completed at least once */
if (webui->cnt->passflag == 0) return MHD_NO;
if (strcmp (method, "GET") != 0){
MOTION_LOG(NTC, TYPE_STREAM, NO_ERRNO ,_("Invalid Method requested: %s"),method);
return MHD_NO;
@@ -1316,6 +1313,9 @@ static int webu_answer_strm(void *cls
return retcd;
}
/* Do not answer a request until the motion loop has completed at least once */
if (webui->cnt->passflag == 0) return MHD_NO;
if (webui->cnt->webcontrol_finish) return MHD_NO;
if (strlen(webui->clientip) == 0){