mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 16:25:03 -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;
|
||||
}
|
||||
|
||||
// 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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user