ranges are inclusive in script based http seeds

This commit is contained in:
Arvid Norberg 2010-01-18 05:16:22 +00:00
parent 4a5fbd8a89
commit 81dfade50d
1 changed files with 2 additions and 2 deletions

View File

@ -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";