1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Curl_http_readwrite_headers: minor code simplification

This commit is contained in:
Daniel Stenberg 2015-05-12 11:47:33 +02:00
parent 193251794a
commit df3a970cb4

View File

@ -3381,18 +3381,15 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
} }
else if(conn->httpversion >= 11 && else if(conn->httpversion >= 11 &&
!conn->bits.close) { !conn->bits.close) {
struct connectbundle *cb_ptr;
/* If HTTP version is >= 1.1 and connection is persistent /* If HTTP version is >= 1.1 and connection is persistent
server supports pipelining. */ server supports pipelining. */
DEBUGF(infof(data, DEBUGF(infof(data,
"HTTP 1.1 or later with persistent connection, " "HTTP 1.1 or later with persistent connection, "
"pipelining supported\n")); "pipelining supported\n"));
/* Activate pipelining if needed */ /* Activate pipelining if needed */
cb_ptr = conn->bundle; if(conn->bundle) {
if(cb_ptr) {
if(!Curl_pipeline_site_blacklisted(data, conn)) if(!Curl_pipeline_site_blacklisted(data, conn))
cb_ptr->multiuse = BUNDLE_PIPELINING; conn->bundle->multiuse = BUNDLE_PIPELINING;
} }
} }