Skip to content

Commit ea2fd48

Browse files
committed
Fix bug in data range handling.
If the ranges header information is not valid we send the file as a single chunk but after this action we need to return immediately and do not want to also handle the ranges data. Found while working on S507-051.
1 parent 7141733 commit ea2fd48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/aws-server-http_utils.adb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,7 @@ package body AWS.Server.HTTP_Utils is
20242024
then
20252025
-- Range is wrong, let's send the whole file then
20262026
Send_File;
2027+
return;
20272028
end if;
20282029

20292030
if N_Range = 1 then

0 commit comments

Comments
 (0)