idHttp and ContentRangeLength

Giganews Newsgroups
Subject: idHttp and ContentRangeLength
Posted by:  randydom (randyd…@gmail.com)
Date: Mon, 14 Mar 2011

Hi all , i found this function in a source code

function TDownThread.GetSize: Integer;
begin
  try
    if IdHttp<>nil then
    result := Max(IdHttp.Response.ContentLength,IdHttp.Response.ContentRangeLength)
    else
      result := 0;
  except
    result := 0;
  end;
  result := Max(0,result);
end;
But when i want to recompile it i get : undeclared identifier "ContentRangeLength"
could someone correct this please .
Or what's the used Indy version here .

Replies