www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14707] New: std.net.curl using File.write instead of

https://issues.dlang.org/show_bug.cgi?id=14707

          Issue ID: 14707
           Summary: std.net.curl using File.write instead of File.rawWrite
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: ketmar ketmar.no-ip.org

`download` function in std.net.curl is using

  conn.onReceive = (ubyte[] data) { f.write(data); return data.length; };

i believe that it should be:

  conn.onReceive = (ubyte[] data) { f.rawWrite(data); return data.length; };

--
Jun 17 2015