Many of the curl api's take const buffers/strings but the .d wrapper leaves out the const'ness. For example: curl.h: CURL_EXTERN char *curl_easy_unescape(CURL *handle, const char *string, int length, int *outlength); curl.d: char * curl_easy_unescape(CURL *handle, char *string, int length, int *outlength);
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a516b51d0e44316f6371a3cd78bd3133a035e99b Fix Issue 6820 - etc.c.curl missing const https://github.com/dlang/phobos/commit/25a6420e2bc277c75c934e14adfdf5951797e1d8 Merge pull request #5843 from Darredevil/issue-6820-curl-missing-const Fix Issue 6820 - etc.c.curl missing const merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a516b51d0e44316f6371a3cd78bd3133a035e99b Fix Issue 6820 - etc.c.curl missing const https://github.com/dlang/phobos/commit/25a6420e2bc277c75c934e14adfdf5951797e1d8 Merge pull request #5843 from Darredevil/issue-6820-curl-missing-const