www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15953] New: std.net.curl: contentLength reset method DELETE


          Issue ID: 15953
           Summary: std.net.curl: contentLength reset method DELETE to
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: andre s-e-a-p.de

While setting HTTTP.contentLength the method DELETE is overwritten with POST

due to this coding:

curl.d (line 3024)

        // Force post if necessary

        if (p.method != Method.put && p.method != Method.post &&

            p.method != Method.patch)

            p.method = Method.post;

This seems wrong?

Apr 25 2016