From 10b1987fdaeee112aa863290b751f8a08d828df6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 31 Oct 2020 19:20:18 +0100 Subject: [PATCH] Fix a variable being redeclared in the HTTPRequest code sample (cherry picked from commit d7025c41679554d131243793a89eba77f52e51e5) --- doc/classes/HTTPRequest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/HTTPRequest.xml b/doc/classes/HTTPRequest.xml index 1d2c6fafcb9..06a71f0df0c 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.")