CONSTRAINT_ERROR for byte ranges
reznikmm opened this issue · comments
Maxim Reznik commented
Hello,
Trying to fetch a video from AWS I get CONSTRAINT_ERROR in Send_Range
procedure of aws-server-http_utils.adb:
Send
(Messages.Content_Range_Token & ": bytes "
& Utils.Image (Natural (R_First)) & "-"
& Utils.Image (Natural (R_Last)) --- <<<
& "/" & Utils.Image (Natural (Length)) --- <<<
& CRLF
& Messages.Content_Length (R_Length) & CRLF & CRLF);
because the length of the file is more then Natural'Last (which is just 2Gb on my OS).
Could you fix that?
Pascal Obry commented
That is fixed now.