Restconf: reset body buffer

Test: replace http2 with http1.1 instead of appending it
This commit is contained in:
Olof hagsand 2022-09-23 14:44:08 +02:00
parent e0ba90207b
commit 2ce77fdd5c
4 changed files with 5 additions and 3 deletions

View file

@ -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