Fix bug with esp32-cam-webserver #545

This commit is contained in:
Alexey Khit
2023-07-31 17:46:26 +03:00
parent ba6c96412b
commit 2faea1bb69
+7
View File
@@ -88,6 +88,13 @@ func (c *Client) startMJPEG(boundary string) error {
if err != nil {
return err
}
// fix leading empty line from esp32-cam-webserver
// https://github.com/AlexxIT/go2rtc/issues/545
if s == "" {
continue
}
if !strings.HasPrefix(s, boundary) {
return errors.New("wrong boundary: " + s)
}