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 incorrect value returned by HTTPClient.get_response_body_length on Web (reverted) #77648

Merged
merged 1 commit into from
May 30, 2023

Conversation

zaevi
Copy link
Contributor

@zaevi zaevi commented May 30, 2023

Fix #77642

@mhilbrunner mhilbrunner added this to the 4.1 milestone May 30, 2023
@YuriSizov YuriSizov changed the title Fix HTTPClient.get_response_body_length() incorrect on Web Fix incorrect value returned by HTTPClient.get_response_body_length on Web May 30, 2023
@YuriSizov YuriSizov merged commit a864298 into godotengine:master May 30, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@mhilbrunner
Copy link
Member

We should make sure @Faless gives this a glance too, and consider whether its important enough to backport the fix to 4.0

@YuriSizov YuriSizov changed the title Fix incorrect value returned by HTTPClient.get_response_body_length on Web Fix incorrect value returned by HTTPClient.get_response_body_length on Web (reverted) Jul 24, 2023
@YuriSizov
Copy link
Contributor

The change was effectively reverted by #79846. It looks like we can't reliably compute the size of the body on the web platform due to browser limitations. So the value of -1 is correct in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Web] HTTPClient.get_response_body_length() incorrect on Web
5 participants