Skip to content
Snippets Groups Projects
Commit 0b977c96 authored by rswindell's avatar rswindell
Browse files

Added [web] DEBUG_SSJS option to keep tempoary SSJS files.

parent f91da679
No related branches found
No related tags found
No related merge requests found
......@@ -754,7 +754,8 @@ static void close_request(http_session_t * session)
putmsgptrs(&scfg, session->user.number, session->subscan);
if(session->req.cleanup_file!=NULL) {
unlink(session->req.cleanup_file);
if(!(startup->options&WEB_OPT_DEBUG_SSJS))
remove(session->req.cleanup_file);
free(session->req.cleanup_file);
}
......
......@@ -113,6 +113,7 @@ static struct init_field web_init_fields[] = {
#define WEB_OPT_DEBUG_RX (1<<0) /* Log all received requests */
#define WEB_OPT_DEBUG_TX (1<<1) /* Log all transmitted responses */
#define WEB_OPT_DEBUG_SSJS (1<<2) /* Don't delete sbbs_ssjs.*.html */
#define WEB_OPT_VIRTUAL_HOSTS (1<<4) /* Use virutal host html subdirs */
#define WEB_OPT_NO_CGI (1<<5) /* Disable CGI support */
#define WEB_OPT_HTTP_LOGGING (1<<6) /* Create/write-to HttpLogFile */
......@@ -125,6 +126,7 @@ static ini_bitdesc_t web_options[] = {
{ WEB_OPT_DEBUG_RX ,"DEBUG_RX" },
{ WEB_OPT_DEBUG_TX ,"DEBUG_TX" },
{ WEB_OPT_DEBUG_SSJS ,"DEBUG_SSJS" },
{ WEB_OPT_VIRTUAL_HOSTS ,"VIRTUAL_HOSTS" },
{ WEB_OPT_NO_CGI ,"NO_CGI" },
{ WEB_OPT_HTTP_LOGGING ,"HTTP_LOGGING" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment