From a878cb305650ccd25f205cbbdc44bb01e722a25d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 30 Jan 2014 14:26:00 +0100 Subject: http2: do the POST Upgrade dance properly --- lib/http.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/http.h') diff --git a/lib/http.h b/lib/http.h index 8d3f9d0d0..228e375eb 100644 --- a/lib/http.h +++ b/lib/http.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -151,7 +151,10 @@ struct HTTP { struct http_conn { #ifdef USE_NGHTTP2 +#define H2_BINSETTINGS_LEN 80 nghttp2_session *h2; + uint8_t binsettings[H2_BINSETTINGS_LEN]; + size_t binlen; /* length of the binsettings data */ char *mem; /* points to a buffer in memory to store or read from */ size_t size; /* size of the buffer 'mem' points to */ ssize_t nread; /* how much data that was sent/recv by the HTTP2 engine */ -- cgit v1.2.3