diff options
Diffstat (limited to 'platform/javascript/js/libs/library_godot_http_request.js')
-rw-r--r-- | platform/javascript/js/libs/library_godot_http_request.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/js/libs/library_godot_http_request.js b/platform/javascript/js/libs/library_godot_http_request.js index 7dc2a2df29..2412f87e81 100644 --- a/platform/javascript/js/libs/library_godot_http_request.js +++ b/platform/javascript/js/libs/library_godot_http_request.js @@ -86,7 +86,7 @@ const GodotHTTPRequest = { godot_xhr_send: function (xhrId, p_ptr, p_len) { let data = null; if (p_ptr && p_len) { - data = GodotRuntime.heapCopy(HEAP8, p_ptr, p_len); + data = GodotRuntime.heapSlice(HEAP8, p_ptr, p_len); } GodotHTTPRequest.requests[xhrId].send(data); }, |