mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
[Net] Makes HTTPClient a custom instance class.
This commit is contained in:
@@ -628,7 +628,7 @@ void HTTPRequest::_bind_methods() {
|
||||
}
|
||||
|
||||
HTTPRequest::HTTPRequest() {
|
||||
client.instantiate();
|
||||
client = Ref<HTTPClient>(HTTPClient::create());
|
||||
timer = memnew(Timer);
|
||||
timer->set_one_shot(true);
|
||||
timer->connect("timeout", callable_mp(this, &HTTPRequest::_timeout));
|
||||
|
||||
Reference in New Issue
Block a user