4 Commits

Author SHA1 Message Date
Alexey Melnichuk
db7e541e09 Fix. Remove values from storage on unset.
Fix. Set callback with context.
2014-09-03 11:16:10 +05:00
Alexey Melnichuk
21106ca7bd Fix. Reset options will also reset value in storage.
```Lua
-- Fixed
e:setopt_httppost(curl.form())
e:setopt_httppost(curl.form())
-- `e` store 2 form object and the will alive until `e` is alive.
```
2014-09-01 16:19:51 +05:00
Alexey Melnichuk
ee905b4209 Add. easy escape test. 2014-09-01 15:34:42 +05:00
Alexey Melnichuk
7aa70f9a59 Change. Write callback can return any true value (except numbers).
For example in Lua 5.2 file:write method returns `self`.

``` Lua
function write(str)
  return #str - 1 -- this is error (number less than #str)
end

function write(str)
  return {} -- this is pass
end
```
2014-09-01 14:53:25 +05:00