]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: remove redundant check
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 May 2024 12:33:34 +0000 (14:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 May 2024 21:37:09 +0000 (23:37 +0200)
Spotted by CodeSonar

Closes #13582

lib/http.c

index 839b829479d84e8576176ec48abd3eb840391666..01f26bf85aec297e95c0939eea66bef976450942 100644 (file)
@@ -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) {