Skip to content

Commit

Permalink
Curl_http_readwrite_headers: minor code simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed May 18, 2015
1 parent 1932517 commit df3a970
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/http.c
Expand Up @@ -3381,18 +3381,15 @@ CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
}
else if(conn->httpversion >= 11 &&
!conn->bits.close) {
struct connectbundle *cb_ptr;

/* If HTTP version is >= 1.1 and connection is persistent
server supports pipelining. */
DEBUGF(infof(data,
"HTTP 1.1 or later with persistent connection, "
"pipelining supported\n"));
/* Activate pipelining if needed */
cb_ptr = conn->bundle;
if(cb_ptr) {
if(conn->bundle) {
if(!Curl_pipeline_site_blacklisted(data, conn))
cb_ptr->multiuse = BUNDLE_PIPELINING;
conn->bundle->multiuse = BUNDLE_PIPELINING;
}
}

Expand Down

0 comments on commit df3a970

Please sign in to comment.