summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-05-12 11:47:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-05-12 11:47:33 +0200
commitebcf4684445348dd8306659163ac2cc82ccaa834 (patch)
tree2d3e8443addd61c3b34b80ef0c50eb72948c3f99
parent050ed3eb6bc68feb81946a1b90555a2648af3cdd (diff)
downloadcurl-ebcf4684445348dd8306659163ac2cc82ccaa834.tar.gz
Curl_http_readwrite_headers: minor code simplification
-rw-r--r--lib/http.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/http.c b/lib/http.c
index aa81ac3aa..76e52e740 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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;
}
}