* RESTCONF,

* Refactored http1 code
  * fixed some http1/http2 only compile issues
This commit is contained in:
Olof hagsand 2022-02-14 20:59:10 +01:00
parent 78bdc4eaca
commit 12dddfd794
6 changed files with 408 additions and 276 deletions

View file

@ -439,8 +439,8 @@ function wait_restconf(){
else
myproto=${RCPROTO}
fi
# echo "curl $CURLOPTS $myproto://localhost/restconf"
hdr=$(curl $CURLOPTS $myproto://localhost/restconf 2> /dev/null)
# echo "curl $CURLOPTS -X GET $myproto://localhost/restconf"
hdr=$(curl $CURLOPTS -X GET $myproto://localhost/restconf 2> /dev/null)
# echo "hdr:\"$hdr\""
let i=0;
while [[ "$hdr" != *"200"* ]]; do
@ -449,7 +449,7 @@ function wait_restconf(){
err1 "restconf timeout $DEMWAIT seconds"
fi
sleep $DEMSLEEP
hdr=$(curl $CURLOPTS $* $myproto://localhost/restconf 2> /dev/null)
hdr=$(curl $CURLOPTS -X GET $myproto://localhost/restconf 2> /dev/null)
# echo "hdr:\"$hdr\""
let i++;
done