mirror of
https://gitee.com/openharmony/third_party_nghttp2
synced 2024-11-24 00:10:12 +00:00
src: Disable strip http-parser mode
Add --enable-strict-http-parser mode to enable it.
This commit is contained in:
parent
dc82a6026e
commit
6c51bd0979
@ -58,6 +58,11 @@ AC_ARG_ENABLE([debug],
|
||||
[Turn on debug output])],
|
||||
[debug=$enableval], [debug=no])
|
||||
|
||||
AC_ARG_ENABLE([strict-http-parser],
|
||||
[AS_HELP_STRING([--enable-strict-http-parser],
|
||||
[Turn on strict http parser mode])],
|
||||
[strict_http_parser=$enableval], [strict_http_parser=no])
|
||||
|
||||
AC_ARG_ENABLE([app],
|
||||
[AS_HELP_STRING([--enable-app],
|
||||
[Build applications (nghttp, nghttpd and nghttpx) [default=check]])],
|
||||
@ -391,6 +396,10 @@ if test "x$debug" != "xno"; then
|
||||
CFLAGS="$CFLAGS -DDEBUGBUILD"
|
||||
fi
|
||||
|
||||
if test "x$strict_http_parser" = "xno"; then
|
||||
CFLAGS="$CFLAGS -DHTTP_PARSER_STRICT=0"
|
||||
fi
|
||||
|
||||
AC_SUBST([TESTS_LIBS])
|
||||
AC_SUBST([SRC_LIBS])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user