Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: maximum value for max_response_bytes #297

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

gregorydemay
Copy link
Member

Fix a bug introduced by #279, where the constant HTTP_MAX_SIZE was changed from 2 MB to 2 MiB. This is wrong since per the IC specification max_response_bytes must be at most 2_000_000 bytes and HTTPs outcalls using a bigger value for max_response_bytes will be rejected.

@gregorydemay gregorydemay marked this pull request as ready for review October 3, 2024 14:46
@gregorydemay gregorydemay requested review from rvanasa and THLO October 3, 2024 14:46
@gregorydemay gregorydemay merged commit 93d3e9f into main Oct 3, 2024
3 checks passed
@gregorydemay gregorydemay deleted the fix-max-payload-size branch October 3, 2024 18:54
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