summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-01 12:30:49 +0100
committerGitHub <noreply@github.com>2020-11-01 12:30:49 +0100
commit7bc74b0fc802368a91b6a59e4a5e0989c0f51d06 (patch)
treef673357d99c68f5d75f4634ce72ca44527501c09 /doc/classes
parent41f66761fd8e41760dbffce9b9a4a4d8ceb7af0b (diff)
parentd7025c41679554d131243793a89eba77f52e51e5 (diff)
Merge pull request #43241 from Calinou/doc-httprequest-fix-code-sample
Fix a variable being redeclared in the HTTPRequest code sample
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/HTTPRequest.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/HTTPRequest.xml b/doc/classes/HTTPRequest.xml
index 8cc7ecfbe3..04429d587f 100644
--- a/doc/classes/HTTPRequest.xml
+++ b/doc/classes/HTTPRequest.xml
@@ -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.")