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

bugfix for max file size error #47

Merged
merged 1 commit into from
May 24, 2023
Merged

Conversation

GFNiko
Copy link
Contributor

@GFNiko GFNiko commented May 24, 2023

bugfix for error System.Net.Http.HttpRequestException: Cannot write more bytes to the buffer than the configured maximum buffer size: 2147483647 when trying to download the large model file. Solution is from here

@sandrohanea
Copy link
Owner

Hello @GFNiko,
Thanks for the fix!

Indeed, it's better to not create the buffer in this case and return as soon as the headers are retrieved.

@sandrohanea sandrohanea merged commit ea227ac into sandrohanea:main May 24, 2023
@GFNiko GFNiko deleted the patch-2 branch May 24, 2023 19:15
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