mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -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:
@@ -307,6 +307,9 @@ http_stream_setup(char **stream, const char *url)
|
||||
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
|
||||
* nothing is found in the first 10 lines
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user