diff --git a/std/net/curl.d b/std/net/curl.d index efbb4f8811c..59067ab9ba2 100644 --- a/std/net/curl.d +++ b/std/net/curl.d @@ -3234,7 +3234,7 @@ struct HTTP */ @property void maxRedirects(uint maxRedirs) { - if (maxRedirs == uint.max) + if (maxRedirs == 0) { // Disable p.curl.set(CurlOption.followlocation, 0);