From 7b5bacdd0a987391313399bd3b9a18f6ce3473af Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 May 2024 14:33:34 +0200 Subject: [PATCH] http: remove redundant check Spotted by CodeSonar Closes #13582 --- lib/http.c | 4 ---- 1 file changed, 4 deletions(-) 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) { -- 2.47.3