← Back to index
|
Original Bugzilla link
Bug 18851 – std.net.curl.post cannot be used with !ubyte
Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-05-10T21:47:24Z
Last change time
2018-10-06T09:38:39Z
Keywords
trivial
Assigned to
wolframw
Creator
Eugene
Comments
Comment #0
by tech.vindex — 2018-05-10T21:47:24Z
In file 'curl.d': T[] post(T = char)(const(char)[] url, string[string] postDict, HTTP conn = HTTP()) if (is(T == char) || is(T == ubyte)) //ignoring { import std.uri : urlEncode; return post(url, urlEncode(postDict), conn); //post!char by default } Correctly: T[] post(T = char)(const(char)[] url, string[string] postDict, HTTP conn = HTTP()) if (is(T == char) || is(T == ubyte)) { import std.uri : urlEncode; return post!T(url, urlEncode(postDict), conn); }
Comment #1
by wolframw — 2018-09-21T18:14:57Z
fixed:
https://github.com/dlang/phobos/pull/6710
Comment #2
by github-bugzilla — 2018-10-06T09:38:39Z
Commits pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/0f999e0a0aa4a211b1b7ccf1d44ca6c1e0245ac7
fix issue 18851
https://github.com/dlang/phobos/commit/7f8e4fa334b614d5740136e9fa6e15696235307a
Merge pull request #6710 from wolframw/issue_18851 Fix Issue 18851 -- std.net.curl.post cannot be used with !ubyte merged-on-behalf-of: Sebastian Wilzbach <
[email protected]
>