From 7efaba4ff23e3918f4ae9cac6d72a9f3e236e22a Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Mon, 15 Sep 2014 13:20:08 +0500 Subject: [PATCH] Update doc[ci skip] --- doc/curl.ldoc | 1 + examples/cURLv3/multi.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/curl.ldoc b/doc/curl.ldoc index 2c77a67..0aad615 100644 --- a/doc/curl.ldoc +++ b/doc/curl.ldoc @@ -131,6 +131,7 @@ do --
Returned data types: `response`, `header`, `data`, `error`, `done`. --
Note. response data may appeare several times (e.g. if you proceed http request -- with digest auth you should get 401 and 200 responses). +--
Easy handle is removed at the end of the operation (when get `done` or `error` row). -- -- @treturn Iterator iterator for generic for -- diff --git a/examples/cURLv3/multi.lua b/examples/cURLv3/multi.lua index 56d6be9..395a297 100644 --- a/examples/cURLv3/multi.lua +++ b/examples/cURLv3/multi.lua @@ -12,6 +12,6 @@ local f1 = io.open("lua.html", "w+b") local f2 = io.open("luajit.html", "w+b") for data, type, easy in m:iperform() do - if type == "data" and c1 == easy then f1:write(data) end - if type == "data" and c2 == easy then f2:write(data) end + if type == "data" and c1 == easy then f1:write(data) end + if type == "data" and c2 == easy then f2:write(data) end end