AdaCore / aws

AWS is a complete framework to develop Web based applications in Ada.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CONSTRAINT_ERROR for byte ranges

reznikmm opened this issue · comments

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?

That is fixed now.