Fix a variable being redeclared in the HTTPRequest code sample

This commit is contained in:
Hugo Locurcio 2020-10-31 19:20:18 +01:00
parent 41f66761fd
commit d7025c4167
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -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.")