mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 14:43:21 -05:00
HTTP Range header may be in the form 'bytes=12345-' (no end offset)
This commit is contained in:
parent
4842751527
commit
3064509f62
@ -341,7 +341,7 @@ httpd_stream_file(struct evhttp_request *req, int id)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
param_end = strchr(param, '-');
|
param_end = strchr(param, '-');
|
||||||
if (param_end)
|
if (param_end && (strlen(param_end) > 1))
|
||||||
{
|
{
|
||||||
ret = safe_atoi64(param_end + 1, &end_offset);
|
ret = safe_atoi64(param_end + 1, &end_offset);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user