diff --git a/apps/restconf/restconf_main_native.c b/apps/restconf/restconf_main_native.c index afbe1210..b29bdc25 100644 --- a/apps/restconf/restconf_main_native.c +++ b/apps/restconf/restconf_main_native.c @@ -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) { diff --git a/test/test_restconf.sh b/test/test_restconf.sh index 3fa85f51..cb01bb6e 100755 --- a/test/test_restconf.sh +++ b/test/test_restconf.sh @@ -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' "" "" ""