ranges are inclusive in script based http seeds
This commit is contained in:
parent
4a5fbd8a89
commit
81dfade50d
|
@ -209,8 +209,8 @@ namespace libtorrent
|
|||
request += "&ranges=";
|
||||
request += to_string(r.start).elems;
|
||||
request += "-";
|
||||
// TODO: are ranges inclusive?
|
||||
request += to_string(r.start + r.length).elems;
|
||||
// ranges are inclusive, just like HTTP
|
||||
request += to_string(r.start + r.length - 1).elems;
|
||||
}
|
||||
|
||||
request += " HTTP/1.1\r\n";
|
||||
|
|
Loading…
Reference in New Issue