patch for fixing http2 test

This commit is contained in:
Olof hagsand 2021-05-09 22:12:33 +02:00
parent 6ed2202638
commit 7023fe589f
2 changed files with 1 additions and 2 deletions

View file

@ -786,7 +786,6 @@ alpn_select_proto_cb(SSL *ssl,
if (clicon_debug_get())
dump_alpn_proto_list(in, inlen);
inp = (unsigned char*)in;
/* select http/1.1 */
inp = (unsigned char*)in;
while ((len = *inp) != 0) {

View file

@ -178,7 +178,7 @@ fi
if [ $proto = http ]; then # see (2) https to http port in restconf_main_native.c
new "restconf GET http/2 prior-knowledge (http)"
expectpart "$(curl $CURLOPTS --http2-prior-knowledge -X GET $proto://$addr/.well-known/host-meta 2>&1)" "16 55" # "Error in the HTTP2 framing layer" "Connection reset by peer"
expectpart "$(curl $CURLOPTS --http2-prior-knowledge -X GET $proto://$addr/.well-known/host-meta 2>&1)" "16 52 55" # "Error in the HTTP2 framing layer" "Connection reset by peer"
else
new "restconf GET http/2 prior-knowledge (https)"
expectpart "$(curl $CURLOPTS --http2-prior-knowledge -X GET $proto://$addr/.well-known/host-meta)" 0 'HTTP/1.1 200 OK' "<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>" "<Link rel='restconf' href='/restconf'/>" "</XRD>"