Skip to content

Commit

Permalink
Fixed http.post() example (#2734)
Browse files Browse the repository at this point in the history
  • Loading branch information
mucek4 authored and devsaurus committed Apr 22, 2019
1 parent c55ef29 commit 4203680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4203680

Please sign in to comment.