We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8bd770 commit 9b2470aCopy full SHA for 9b2470a
core/systems/network/http_api_client.gd
@@ -4,6 +4,7 @@ class_name HTTPAPIClient
4
@export var base_url := ""
5
@export var headers := PackedStringArray()
6
@export var cache_folder := "HTTPAPIClient"
7
+@export var verify_tls := true
8
var logger := Log.get_logger("HTTPAPIClient")
9
10
@@ -33,6 +34,8 @@ func request(
33
34
35
# Make the request
36
var http := HTTPRequest.new()
37
+ if not verify_tls:
38
+ http.set_tls_options(TLSOptions.client_unsafe())
39
http.timeout = 30.0
40
add_child.call_deferred(http)
41
await http.ready
@@ -83,4 +86,3 @@ class Response:
83
86
res.header = result[2]
84
87
res.body = Marshalls.base64_to_raw(result[3])
85
88
return res
-
0 commit comments