You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
[Net] Fix get_response_body_length for large files.
Parsing was fixed, but not the return value for the exposed getter.
(cherry picked from commit 01e5e98312)
This commit is contained in:
committed by
Rémi Verschelde
parent
dd57c321bf
commit
822da984bb
@@ -611,7 +611,7 @@ Error HTTPClient::poll() {
|
||||
return OK;
|
||||
}
|
||||
|
||||
int HTTPClient::get_response_body_length() const {
|
||||
int64_t HTTPClient::get_response_body_length() const {
|
||||
return body_size;
|
||||
}
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ public:
|
||||
bool is_response_chunked() const;
|
||||
int get_response_code() const;
|
||||
Error get_response_headers(List<String> *r_response);
|
||||
int get_response_body_length() const;
|
||||
int64_t get_response_body_length() const;
|
||||
|
||||
PoolByteArray read_response_body_chunk(); // Can't get body as partial text because of most encodings UTF8, gzip, etc.
|
||||
|
||||
|
||||
@@ -185,7 +185,7 @@ Error HTTPClient::get_response_headers(List<String> *r_response) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
int HTTPClient::get_response_body_length() const {
|
||||
int64_t HTTPClient::get_response_body_length() const {
|
||||
return godot_js_fetch_body_length_get(js_id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user