Skip to content

Commit

Permalink
Update http_result.gd
Browse files Browse the repository at this point in the history
Fix a bug that is very unlikely to cause issues, therefore I'll consider this part of 2.0.0
  • Loading branch information
Swarkin authored Sep 1, 2024
1 parent 6546a27 commit a0982e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/awaitable_http_request/http_result.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a0982e9

Please sign in to comment.