Fix complex Content-Type for image/jpeg #278

This commit is contained in:
Alexey Khit
2023-07-11 15:56:55 +03:00
parent 39c25215ba
commit 8036278e29
+2 -1
View File
@@ -32,7 +32,8 @@ func (c *Client) GetTrack(media *core.Media, codec *core.Codec) (*core.Receiver,
func (c *Client) Start() error {
ct := c.res.Header.Get("Content-Type")
if ct == "image/jpeg" {
// https://github.com/AlexxIT/go2rtc/issues/278
if strings.HasPrefix(ct, "image/jpeg") {
return c.startJPEG()
}