You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Fix a variable being redeclared in the HTTPRequest code sample
(cherry picked from commit d7025c4167)
This commit is contained in:
committed by
Rémi Verschelde
parent
5e6af913de
commit
10b1987fda
@@ -23,7 +23,7 @@
|
||||
# Note: Don't make simultaneous requests using a single HTTPRequest node.
|
||||
# The snippet below is provided for reference only.
|
||||
var body = {"name": "Godette"}
|
||||
var error = http_request.request("https://httpbin.org/post", [], true, HTTPClient.METHOD_POST, body)
|
||||
error = http_request.request("https://httpbin.org/post", [], true, HTTPClient.METHOD_POST, body)
|
||||
if error != OK:
|
||||
push_error("An error occurred in the HTTP request.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user