download system
This commit is contained in:
@@ -40,7 +40,7 @@ static func load_web_font(font_info: Dictionary) -> void:
|
||||
http_request.timeout = 30.0
|
||||
|
||||
http_request.request_completed.connect(func(_result: int, response_code: int, _headers: PackedStringArray, body: PackedByteArray):
|
||||
if response_code == 200:
|
||||
if response_code >= 200 and response_code < 300:
|
||||
|
||||
if body.size() > 0:
|
||||
var font = FontFile.new()
|
||||
|
||||
Reference in New Issue
Block a user