Skip to content

feat(ic-http-gateway): add more tests and checks for long asset handling#28

Merged
nathanosdev merged 1 commit intomainfrom
bartosz/chunk-order-test
Oct 30, 2024
Merged

feat(ic-http-gateway): add more tests and checks for long asset handling#28
nathanosdev merged 1 commit intomainfrom
bartosz/chunk-order-test

Conversation

@przydatek
Copy link
Copy Markdown
Contributor

  • Add detection of out-of-order chunks in streaming responses, and corresponding tests.
  • Add sanity checks for Content-Range values returned with chunked responses.

@przydatek przydatek marked this pull request as ready for review October 30, 2024 13:52
@przydatek przydatek requested a review from a team as a code owner October 30, 2024 13:52
@przydatek przydatek requested a review from nathanosdev October 30, 2024 13:52
let str_value = get_content_range_header_str(response_headers)?;
parse_content_range_header_str(&str_value)
let range_values = parse_content_range_header_str(&str_value)?;
// ic_cdk::println!("--- range values: {:?}", range_values);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please remove the log

@nathanosdev nathanosdev merged commit 7647269 into main Oct 30, 2024
@nathanosdev nathanosdev deleted the bartosz/chunk-order-test branch October 30, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants