diff --git a/lime/net/URLLoader.hx b/lime/net/URLLoader.hx index b70378b22..b0d96c99c 100644 --- a/lime/net/URLLoader.hx +++ b/lime/net/URLLoader.hx @@ -365,7 +365,7 @@ class URLLoader { private function writeFunction (output:Bytes, size:Int, nmemb:Int):Int { - __data.readBytes (ByteArray.fromBytes (output)); + __data.writeBytes (ByteArray.fromBytes (output)); return size * nmemb; }