Update CURL.hx
This commit is contained in:
@@ -166,12 +166,6 @@ class CURL
|
|||||||
|
|
||||||
case CURLOption.WRITEFUNCTION:
|
case CURLOption.WRITEFUNCTION:
|
||||||
var callback:CURL->Bytes->Int = cast parameter;
|
var callback:CURL->Bytes->Int = cast parameter;
|
||||||
#if hl
|
|
||||||
parameter = function(bytes:Bytes):Int
|
|
||||||
{
|
|
||||||
return callback(this, bytes);
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
parameter = function(bytes:Bytes, length:Int):Int
|
parameter = function(bytes:Bytes, length:Int):Int
|
||||||
{
|
{
|
||||||
var cacheLength = bytes.length;
|
var cacheLength = bytes.length;
|
||||||
@@ -180,7 +174,6 @@ class CURL
|
|||||||
@:privateAccess bytes.length = cacheLength;
|
@:privateAccess bytes.length = cacheLength;
|
||||||
return read;
|
return read;
|
||||||
}
|
}
|
||||||
#end
|
|
||||||
bytes = Bytes.alloc(0);
|
bytes = Bytes.alloc(0);
|
||||||
|
|
||||||
// case CURLOption.READFUNCTION:
|
// case CURLOption.READFUNCTION:
|
||||||
|
|||||||
Reference in New Issue
Block a user