Fix. setopt socketfunction.

This commit is contained in:
Alexey Melnichuk 2017-02-13 10:57:05 +03:00
parent f8a96ddcce
commit 187f44306f

View File

@ -681,7 +681,7 @@ function Multi:setopt(k, v)
end
if k == curl.OPT_SOCKETFUNCTION then
return self:setopt_httppost(wrap_socketfunction(v))
return self:setopt_socketfunction(v)
end
return setopt(self, k, v)