Http data server changes
* Indirect redirects from directory to `index.html` * Added `HTTP_DATA_INTERNAL_REDIRECT` compile-time option * Added CLICON_RESTCONF_API_ROOT to clixon-config.yang * Added 404 return without body if neither restconf, data or streams prefix match * Fixed: HTTP/1 parse error for '/' path
This commit is contained in:
parent
84d88c8ad8
commit
f11e4bad6c
10 changed files with 197 additions and 113 deletions
|
|
@ -99,6 +99,12 @@
|
|||
*/
|
||||
#define RESTCONF_NETNS_DEFAULT "default"
|
||||
|
||||
/*! If set make an internal redirect if URI path indetifies a directory
|
||||
* For example, path is /local, and redirect is 'index.html, the request
|
||||
* will be redirected to /local/index.html
|
||||
*/
|
||||
#define HTTP_DATA_INTERNAL_REDIRECT "index.html"
|
||||
|
||||
/*! Set a temporary parent for use in special case "when" xpath calls
|
||||
* Problem is when changing an existing (candidate) in-memory datastore that yang "when" conditionals
|
||||
* should be changed in clixon_datastore_write.c:text_modify().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue