mirror of https://github.com/arendst/Tasmota.git
Merge pull request #15661 from Nemobi/development
Fix redirect to cam.mjpg
This commit is contained in:
commit
f795b4cf83
|
@ -911,7 +911,7 @@ void HandleWebcamMjpegTask(void) {
|
|||
|
||||
void HandleWebcamRoot(void) {
|
||||
//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, "", "");
|
||||
AddLog(LOG_LEVEL_DEBUG, PSTR("CAM: Root called"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue