From a0982e9730ece6521c5244595aa555b0fde019ac Mon Sep 17 00:00:00 2001 From: nanachi <102416174+Swarkin@users.noreply.github.com> Date: Sun, 1 Sep 2024 15:58:44 +0200 Subject: [PATCH] Update http_result.gd Fix a bug that is very unlikely to cause issues, therefore I'll consider this part of 2.0.0 --- addons/awaitable_http_request/http_result.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/awaitable_http_request/http_result.gd b/addons/awaitable_http_request/http_result.gd index b3458c9..fb0db24 100644 --- a/addons/awaitable_http_request/http_result.gd +++ b/addons/awaitable_http_request/http_result.gd @@ -19,7 +19,7 @@ func status_ok() -> bool: ## Checks whether the [member status] is between 400 and 599 (inclusive), see [url]https://developer.mozilla.org/en-US/docs/Web/HTTP/Status[/url]. func status_err() -> bool: - return status >= 400 and status < 599 + return status >= 400 and status < 600 ## The response body as a [String].[br] ## For other formatting (ascii, utf16, ...) or special use-cases (file I/O, ...), it is possible to access the raw body's [member bytes].[br]