Issue 15953 - std.net.curl: contentLength reset method DELETE to POST
Summary: std.net.curl: contentLength reset method DELETE to POST
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Windows
: P3 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-25 15:27 UTC by Andre
Modified: 2024-12-01 16:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Andre 2016-04-25 15:27:11 UTC
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?
Comment 1 dlangBugzillaToGithub 2024-12-01 16:26:35 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/9679

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB