diff options
Diffstat (limited to 'support/ab.c')
-rw-r--r-- | support/ab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/support/ab.c b/support/ab.c index 58299a3db2..46040af0d4 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1463,7 +1463,8 @@ static void read_connection(struct connection * c) cl = strstr(c->cbuff, "Content-length:"); if (cl) { c->keepalive = 1; - c->length = atoi(cl + 16); + /* response to HEAD doesn't have entity body */ + c->length = posting >= 0 ? atoi(cl + 16) : 0; } /* The response may not have a Content-Length header */ if (!cl) { |