aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index cfdaaddfc..5711ee64b 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1761,9 +1761,10 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
break;
}
}
- else
+ else {
/* prepare for a http2 request */
Curl_http2_setup(conn);
+ }
http = data->req.protop;