encode search query

This commit is contained in:
Nordup 2023-06-22 01:48:29 +04:00
parent 323b9d3fbb
commit e3d4fcd847
2 changed files with 2 additions and 2 deletions

View file

@ -6,4 +6,4 @@
script = ExtResource("1_oiju7") script = ExtResource("1_oiju7")
local_url = "http://127.0.0.1:8000" local_url = "http://127.0.0.1:8000"
remote_url = "http://95.163.241.188:8000" remote_url = "http://95.163.241.188:8000"
host_type = 0 host_type = 1

View file

@ -31,7 +31,7 @@ func search(query: String) -> void:
func search_request(query: String): func search_request(query: String):
var url = backend.search + query var url = backend.search + query.uri_encode()
var callback = func(_result, code, _headers, body): var callback = func(_result, code, _headers, body):
if code == 200: if code == 200:
result = body.get_string_from_utf8() result = body.get_string_from_utf8()