* 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

@ -350,7 +350,9 @@ restconf_http1_path_root(clicon_handle h,
char *subject = NULL;
cxobj *xerr = NULL;
int pretty;
#ifdef HAVE_LIBNGHTTP2
int ret;
#endif
clicon_debug(1, "------------");
pretty = restconf_pretty_get(h);
@ -417,7 +419,9 @@ restconf_http1_path_root(clicon_handle h,
fail:
if (restconf_param_del_all(h) < 0)
goto done;
#ifdef HAVE_LIBNGHTTP2
upgrade:
#endif
if (sd->sd_code)
if (restconf_http1_reply(rc, sd) < 0)
goto done;