NativeHTTPRequest: Fix buffer management for neko
This commit is contained in:
@@ -393,8 +393,9 @@ class NativeHTTPRequest
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function curl_onWrite(curl:CURL, output:Bytes):Int
|
private function curl_onWrite(curl:CURL, output:Bytes):Int
|
||||||
{
|
{
|
||||||
buffer.add(output);
|
buffer.addBytes(output, 0, output.length)
|
||||||
|
|
||||||
return output.length;
|
return output.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user