Describe the bug
I was having trouble using Firebase Functions, where the parameters are not being passed to Firebase. I think I have identified the cause.
To Reproduce
Steps to reproduce the behavior:
Call a Firebase Function using the GET method with parameters.
The parameters will not be included in the request
Expected behavior
A clear and concise description of what you expected to happen, for example:
parameters should be passed through to Firebase
possible solution
Looking at functions.gd, it appears that the _url parameter is being passed to function_task too early:
var url : String = _base_url + ("/" if not _base_url.ends_with("/") else "") + function
function_task._url = url
if not params.empty():
url += "?"
for key in params.keys():
url += key + "=" + params[key] + "&"
I've tried moving the assignment after the loop and it seems to work for me now
Describe the bug I was having trouble using Firebase Functions, where the parameters are not being passed to Firebase. I think I have identified the cause.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen, for example:
parameters should be passed through to Firebase
possible solution
Looking at functions.gd, it appears that the _url parameter is being passed to function_task too early:
I've tried moving the assignment after the loop and it seems to work for me now