From: Daniel Stenberg Date: Fri, 10 May 2024 12:33:34 +0000 (+0200) Subject: http: remove redundant check X-Git-Tag: curl-8_8_0~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7b5bacdd0a987391313399bd3b9a18f6ce3473af;p=thirdparty%2Fcurl.git http: remove redundant check Spotted by CodeSonar Closes #13582 --- diff --git a/lib/http.c b/lib/http.c index 839b829479..01f26bf85a 100644 --- a/lib/http.c +++ b/lib/http.c @@ -3255,10 +3255,6 @@ CURLcode Curl_http_statusline(struct Curl_easy *data, of the protocol */ conn->bundle->multiuse = BUNDLE_MULTIPLEX; } - else if(k->httpversion >= 11 && !conn->bits.close) { - /* If HTTP version is >= 1.1 and connection is persistent */ - DEBUGF(infof(data, "HTTP 1.1 or later with persistent connection")); - } k->http_bodyless = k->httpcode >= 100 && k->httpcode < 200; switch(k->httpcode) {