HTTP2: reject nghttp2 versions before 0.3.0

This commit is contained in:
Daniel Stenberg
2014-01-29 22:53:08 +01:00
parent 341d09bc2b
commit 803581d3e0

View File

@@ -37,6 +37,10 @@
/* include memdebug.h last */ /* include memdebug.h last */
#include "memdebug.h" #include "memdebug.h"
#if (NGHTTP2_VERSION_NUM < 0x000300)
#error too old nghttp2 version, upgrade!
#endif
/* /*
* HTTP2 handler interface. This isn't added to the general list of protocols * HTTP2 handler interface. This isn't added to the general list of protocols
* but will be used at run-time when the protocol is dynamically switched from * but will be used at run-time when the protocol is dynamically switched from