-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
HTTPRequest get_body_size() returns -1 in HTML5 #87141
Comments
Does the call to |
Yes, the call returns OK. |
In Godot 4.x on Web / HTML5 platform we always return -1 for technical reasons, see #79846. I guess similar limitations also apply to Godot 3. This seems to be explicitly documented for Godot 4, but not Godot 3. |
Okay, I see! Thank you. |
This should still be tracked and documented, please leave it open until solved |
Actually this is documented in 3.x (future 3.6) but has not been retroactively added to 3.5 . godot/doc/classes/HTTPRequest.xml Line 84 in e184e62
|
That is unrelated, that's about the servers sending packets to the client, not the platform of Godot, this is already in 3.5 (it was added five years ago) |
Tested versions
v3.5.3.stable.official [6c81413]
System information
MacOS Sonoma 14.1.2.
Browser tested: Chrome, Firefox.
Issue description
When calling the
HTTPRequest.get_body_size()
function, it returns -1 only in HTML5, while it works as expected in MacOS.Steps to reproduce
Call the function in
get_body_size()
while in HTML5.Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: