}
if (headers.at(":method") == "POST") {
+#if defined(HAVE_QUICHE_H3_EVENT_HEADERS_HAS_MORE_FRAMES)
+ if (!quiche_h3_event_headers_has_more_frames(event)) {
+#else
if (!quiche_h3_event_headers_has_body(event)) {
+#endif
handleImmediateError("Empty POST query");
}
return;
AS_IF([test "x$with_quiche" != "xno"], [
AS_IF([test "x$with_quiche" = "xyes" -o "x$with_quiche" = "xauto"], [
- PKG_CHECK_MODULES([QUICHE], [quiche >= 0.22.0], [
+ PKG_CHECK_MODULES([QUICHE], [quiche >= 0.23.0], [
[HAVE_QUICHE=1]
AC_DEFINE([HAVE_QUICHE], [1], [Define to 1 if you have quiche])
+ AC_DEFINE([HAVE_QUICHE_H3_EVENT_HEADERS_HAS_MORE_FRAMES], [1], [Define to 1 if the Quiche API has quiche_h3_event_headers_has_more_frames instead of quiche_h3_event_headers_has_body])
AC_DEFINE([HAVE_QUICHE_STREAM_ERROR_CODES], [1], [Define to 1 if the Quiche API includes error code in quiche_conn_stream_recv and quiche_conn_stream_send])
], [
- # Quiche is older than 0.22.0, or no Quiche at all
- PKG_CHECK_MODULES([QUICHE], [quiche >= 0.15.0], [
+ PKG_CHECK_MODULES([QUICHE], [quiche >= 0.22.0], [
[HAVE_QUICHE=1]
AC_DEFINE([HAVE_QUICHE], [1], [Define to 1 if you have quiche])
- ], [ : ])
+ AC_DEFINE([HAVE_QUICHE_STREAM_ERROR_CODES], [1], [Define to 1 if the Quiche API includes error code in quiche_conn_stream_recv and quiche_conn_stream_send])
+ ], [
+ # Quiche is older than 0.22.0, or no Quiche at all
+ PKG_CHECK_MODULES([QUICHE], [quiche >= 0.15.0], [
+ [HAVE_QUICHE=1]
+ AC_DEFINE([HAVE_QUICHE], [1], [Define to 1 if you have quiche])
+ ], [ : ])
+ ])
])
AS_IF([test "x$HAVE_QUICHE" = "x1"], [
save_CFLAGS=$CFLAGS
opt_libquiche = get_option('quiche')
if (get_option('dns-over-quic') or get_option('dns-over-http3')) and opt_libquiche.allowed()
- dep_libquiche = dependency('quiche', version: '>= 0.22.0', required: opt_libquiche)
+ dep_libquiche = dependency('quiche', version: '>= 0.23.0', required: opt_libquiche)
+ if dep_libquiche.found()
+ conf.set('HAVE_QUICHE_H3_EVENT_HEADERS_HAS_MORE_FRAMES', dep_libquiche.found(), description: 'if the Quiche API has quiche_h3_event_headers_has_more_frames instead of quiche_h3_event_headers_has_body')
+ else
+ dep_libquiche = dependency('quiche', version: '>= 0.22.0', required: opt_libquiche)
+ endif
if dep_libquiche.found()
conf.set('HAVE_QUICHE_STREAM_ERROR_CODES', dep_libquiche.found(), description: 'if the Quiche API includes error code in quiche_conn_stream_recv and quiche_conn_stream_send')