Skip to content

Commit 050c9fd

Browse files
jiaaroslime73
authored andcommitted
fix incorrect example docs
1 parent f5ec5ea commit 050c9fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example/example.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ do
88
end
99

1010
do
11-
local code, body, headers = https.request("http://example.com", {method = "post", headers = {}, body = "cake"})
11+
local code, body, headers = https.request("http://example.com", {method = "post", headers = {}, data = "cake"})
1212
assert(code == 200 and headers, body)
1313

1414
for i, v in pairs(headers) do

0 commit comments

Comments
 (0)