#include "curl_base64.h"
#include "rawstr.h"
#include "multiif.h"
+#include "bundles.h"
/* The last #include files should be: */
#include "curl_memory.h"
{
CURLcode result;
struct http_conn *httpc = &conn->proto.httpc;
+
+ if((conn->handler == &Curl_handler_http2_ssl) ||
+ (conn->handler == &Curl_handler_http2))
+ return CURLE_OK; /* already done */
+
if(conn->handler->flags & PROTOPT_SSL)
conn->handler = &Curl_handler_http2_ssl;
else
if(result)
return result;
- infof(conn->data, "Using HTTP2\n");
+ infof(conn->data, "Using HTTP2, server supports multi-use\n");
httpc->bodystarted = FALSE;
httpc->error_code = NGHTTP2_NO_ERROR;
httpc->closed = FALSE;
httpc->status_code = -1;
conn->httpversion = 20;
+ conn->bundle->server_supports_pipelining = TRUE;
return CURLE_OK;
}