Improvements for --base-path usage (#292)

* Trim trailing slashes in --base-path option

* Redirect `/base-path` to `/base-path/`

* Log endpoints if --base-path is provided

* Use predefined token for standard header 'location'
This commit is contained in:
Daniel Monteiro Basso
2020-03-25 09:12:33 +00:00
committed by GitHub
parent ea27950594
commit 398bebf091
3 changed files with 27 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ struct endpoints {
char *ws;
char *index;
char *token;
char *parent;
};
extern volatile bool force_exit;