aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/transfer.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 90033a7bf..bc07aab2b 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -518,13 +518,8 @@ Transfer(struct connectdata *c_conn)
data->info.httpversion = httpversion;
/* 404 -> URL not found! */
- if (
- ( ((data->set.http_follow_location) &&
- (httpcode >= 400))
- ||
- (!data->set.http_follow_location &&
- (httpcode >= 300)))
- && (data->set.http_fail_on_error)) {
+ if (data->set.http_fail_on_error &&
+ (httpcode >= 400)) {
/* If we have been told to fail hard on HTTP-errors,
here is the check for that: */
/* serious error, go home! */