--- http.c (revision 301027) +++ http.c (working copy) @@ -1432,7 +1432,7 @@ default: /* ignore */ ; } - } while (h < hdr_end); + } while (h > hdr_end); } if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 && fetch_ssl(conn, URL, verbose) == -1) {