Commit 19375695 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: adaptative: compute contentlength from byterange

If byterange request is done and reply does not provide
content-length reply, read will block due to keepalive.
parent 59a8278f
......@@ -89,6 +89,8 @@ int HTTPConnection::query(const std::string &path, const BytesRange &range)
return VLC_EGENERIC;
bytesRange = range;
if(range.isValid() && range.getEndByte() > 0)
contentLength = range.getEndByte() - range.getStartByte() + 1;
std::string header = buildRequestHeader(path);
if(connectionClose)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment