Skip to content

Commit

Permalink
fix empty file logic
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Dec 20, 2023
1 parent 273d2d8 commit a001a3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/s3_auto_ranged_get.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,9 @@ static void s_s3_auto_ranged_get_request_finished(
content_length_buffer,
sizeof(content_length_buffer),
"%" PRIu64,
object_range_end - object_range_start + 1); // TODO: maybe this should be a helper function?
total_content_length == 0
? 0
: object_range_end - object_range_start + 1); // TODO: maybe this should be a helper function?
aws_http_headers_set(
response_headers, g_content_length_header_name, aws_byte_cursor_from_c_str(content_length_buffer));

Expand Down

0 comments on commit a001a3f

Please sign in to comment.