aboutsummaryrefslogtreecommitdiff
path: root/lib/highlevel.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/highlevel.c')
-rw-r--r--lib/highlevel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/highlevel.c b/lib/highlevel.c
index 107b6ee1c..51f718f1d 100644
--- a/lib/highlevel.c
+++ b/lib/highlevel.c
@@ -172,7 +172,9 @@ _Transfer(struct connectdata *c_conn)
if(conn->size > 0)
pgrsSetDownloadSize(data, conn->size);
}
- {
+ /* we want header and/or body, if neither then don't do this! */
+ if(conn->getheader ||
+ !data->bits.no_body) {
fd_set readfd;
fd_set writefd;
fd_set rkeepfd;