Merge pull request #15661 from Nemobi/development

Fix redirect to cam.mjpg
This commit is contained in:
Theo Arends 2022-05-20 15:54:44 +02:00 committed by GitHub
commit f795b4cf83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -911,7 +911,7 @@ void HandleWebcamMjpegTask(void) {
void HandleWebcamRoot(void) { void HandleWebcamRoot(void) {
//CamServer->redirect("http://" + String(ip) + ":81/cam.mjpeg"); //CamServer->redirect("http://" + String(ip) + ":81/cam.mjpeg");
Wc.CamServer->sendHeader("Location", WiFi.localIP().toString() + ":81/cam.mjpeg"); Wc.CamServer->sendHeader("Location", "/cam.mjpeg");
Wc.CamServer->send(302, "", ""); Wc.CamServer->send(302, "", "");
AddLog(LOG_LEVEL_DEBUG, PSTR("CAM: Root called")); AddLog(LOG_LEVEL_DEBUG, PSTR("CAM: Root called"));
} }