diff --git a/apps/restconf/restconf_native.c b/apps/restconf/restconf_native.c index 79f79a69..d3d788e2 100644 --- a/apps/restconf/restconf_native.c +++ b/apps/restconf/restconf_native.c @@ -765,6 +765,8 @@ restconf_http1_process(restconf_conn *rc, cbuf_reset(sd->sd_outp_buf); cbuf_reset(sd->sd_inbuf); cbuf_reset(sd->sd_indata); + if (sd->sd_body) + cbuf_reset(sd->sd_body); if (sd->sd_qvec){ cvec_free(sd->sd_qvec); sd->sd_qvec = NULL; diff --git a/test/test_perf_restconf.sh b/test/test_perf_restconf.sh index 68bc6245..a1140eb0 100755 --- a/test/test_perf_restconf.sh +++ b/test/test_perf_restconf.sh @@ -13,7 +13,7 @@ s="$_" ; . ./lib.sh || if [ "$s" = $0 ]; then exit 0; else return 0; fi # Pin to http/1 if [ ${HAVE_LIBNGHTTP2} = true -a ${HAVE_HTTP1} = true ]; then HAVE_LIBNGHTTP2=false - CURLOPTS="${CURLOPTS} --http1.1" + CURLOPTS=${CURLOPTS/http2/http1.1} HVER=1.1 fi diff --git a/test/test_restconf_continue.sh b/test/test_restconf_continue.sh index fb6a180a..83b47445 100755 --- a/test/test_restconf_continue.sh +++ b/test/test_restconf_continue.sh @@ -17,7 +17,7 @@ APPNAME=example if [ ${HAVE_LIBNGHTTP2} = true ]; then # Pin to http/1 HAVE_LIBNGHTTP2=false - CURLOPTS="${CURLOPTS} --http1.1" + CURLOPTS=${CURLOPTS/http2/http1.1} HVER=1.1 fi diff --git a/test/test_restconf_err.sh b/test/test_restconf_err.sh index 9025a377..923f50d0 100755 --- a/test/test_restconf_err.sh +++ b/test/test_restconf_err.sh @@ -36,7 +36,7 @@ fi # Pin to http/1 if [ ${HAVE_LIBNGHTTP2} = true -a ${HAVE_HTTP1} = true ]; then HAVE_LIBNGHTTP2=false - CURLOPTS="${CURLOPTS} --http1.1" + CURLOPTS=${CURLOPTS/http2/http1.1} HVER=1.1 fi