[Issue 14707] New: std.net.curl using File.write instead of File.rawWrite

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 17 03:15:46 PDT 2015


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 at puremagic.com
          Reporter: ketmar at 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; };

--


More information about the Digitalmars-d-bugs mailing list