mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-05 10:48:09 -05:00
Fix problem where the http client would ignore the last line in a m3u because of missing CRLF (issue #169)
This commit is contained in:
parent
f73d944456
commit
ec0ba2c5fa
@ -307,6 +307,9 @@ http_stream_setup(char **stream, const char *url)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pad with CRLF because evbuffer_readln() might not read the last line otherwise
|
||||||
|
evbuffer_add(ctx.body, "\r\n", 2);
|
||||||
|
|
||||||
/* Read the playlist until the first stream link is found, but give up if
|
/* Read the playlist until the first stream link is found, but give up if
|
||||||
* nothing is found in the first 10 lines
|
* nothing is found in the first 10 lines
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user