http: remove redundant check

Spotted by CodeSonar

Closes #13582
This commit is contained in:
Daniel Stenberg 2024-05-10 14:33:34 +02:00
parent e0866dd054
commit 7b5bacdd0a
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View 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) {