Add support incoming MJPEG stream

This commit is contained in:
Alexey Khit
2023-02-14 14:25:13 +03:00
parent 6e62c442f8
commit 47371fbdcf
2 changed files with 31 additions and 1 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func (c *Client) startMJPEG(boundary string) error {
if err != nil {
return err
}
if s != boundary {
if !strings.HasPrefix(s, boundary) {
return errors.New("wrong boundary: " + s)
}