Skip to content

Commit cde5ff2

Browse files
authored
Ticket #459 : Fix URL parameters for functions not taken into account (#460)
1 parent 50acb86 commit cde5ff2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addons/godot-firebase/functions/functions.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,14 @@ func execute(function: String, method: int, params: Dictionary = {}, body: Dicti
7777
function_task._method = method
7878

7979
var url : String = _base_url + ("/" if not _base_url.ends_with("/") else "") + function
80-
function_task._url = url
8180

8281
if not params.is_empty():
8382
url += "?"
8483
for key in params.keys():
8584
url += key + "=" + params[key] + "&"
8685

86+
function_task._url = url
87+
8788
if not body.is_empty():
8889
function_task._fields = JSON.stringify(body)
8990

0 commit comments

Comments
 (0)