You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00: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