diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-11 09:32:17 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-11 10:03:36 +0100 |
commit | 75c4e2c5fa268a5d7017651c0238b25e11e5d4bb (patch) | |
tree | f6f5b3987abd8157846759702bb66e75b9cf5cd3 /platform/javascript/http_request.h | |
parent | ad293a82f1fc2e4baa35f54b9b8038df72d23737 (diff) | |
download | redot-engine-75c4e2c5fa268a5d7017651c0238b25e11e5d4bb.tar.gz |
[HTML5] Fix HTTPClient request_raw.
Now send data according to the spec, properly handle null data.
Simplify JS code since we are at it.
Diffstat (limited to 'platform/javascript/http_request.h')
-rw-r--r-- | platform/javascript/http_request.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/javascript/http_request.h b/platform/javascript/http_request.h index d32b2f265e..a9d6faade2 100644 --- a/platform/javascript/http_request.h +++ b/platform/javascript/http_request.h @@ -53,9 +53,7 @@ extern int godot_xhr_open(int p_xhr_id, const char *p_method, const char *p_url, extern void godot_xhr_set_request_header(int p_xhr_id, const char *p_header, const char *p_value); -extern void godot_xhr_send_null(int p_xhr_id); -extern void godot_xhr_send_string(int p_xhr_id, const char *p_data); -extern void godot_xhr_send_data(int p_xhr_id, const void *p_data, int p_len); +extern void godot_xhr_send(int p_xhr_id, const void *p_data, int p_len); extern void godot_xhr_abort(int p_xhr_id); /* this is an HTTPClient::ResponseCode, not ::Status */ |