Fixed http.post() example (#2734)

This commit is contained in:
mucek4 2019-04-22 11:39:14 +02:00 committed by Arnim Läuger
parent c55ef29ab3
commit 42036802fe
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ headers = {
["Content-Type"] = "application/json",
}
body = '{"hello":"world"}'
http.post("http://httpbin.org/post", headers, body,
http.post("http://httpbin.org/post", { headers = headers }, body,
function(code, data)
if (code < 0) then
print("HTTP request failed")