diff options
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index eb7583c08..69ce8af8b 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -830,6 +830,15 @@ CURLcode Curl_readwrite(struct connectdata *conn, infof(data, "HTTP 1.0, assume close after body\n"); conn->bits.close = TRUE; } + else if(k->httpversion >= 11 && + !conn->bits.close) { + /* 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")); + conn->server_supports_pipelining = TRUE; + } switch(k->httpcode) { case 204: |