[Issue 18318] std.net.curl.download silently ignores non-2xx http statuses

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 9 16:02:29 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=18318

--- Comment #5 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MartinNowak updated dlang/phobos pull request #6102 "fix Issue 18318 -
std.net.curl.download silently ignores non-2xx..." fixing this issue:

- fix Issue 18318 - std.net.curl.download silently ignores non-2xx...

  ...http statuses

  - check status code of server response and throw HTTPStatusException
  - still downloads the page if intended
  - not using CURLOPT_FAILONERROR in the low-level API, as that has
    would be too disruptive, and comes with many catches itself
    i.e. only the high-level get/post/.../download/upload throw
HTTPStatusExceptions

https://github.com/dlang/phobos/pull/6102

--


More information about the Digitalmars-d-bugs mailing list