aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 12abbb2c5..435e6b3d1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2935,6 +2935,8 @@ static CURLcode CreateConnection(struct SessionHandle *data,
conn->bits.rangestringalloc = TRUE; /* mark range string allocated */
conn->bits.use_range = TRUE; /* enable range download */
}
+ else
+ conn->bits.use_range = FALSE; /* disable range download */
*in_connect = conn; /* return this instead! */