af565cdd7cea645c67aea9bf91ac0fa50caf6871 max Tue Nov 24 10:29:05 2015 -0800 adding hg.conf option to suppress error output for very early errors refs #16439 diff --git src/inc/htmshell.h src/inc/htmshell.h index a32949f..dbceaf5 100644 --- src/inc/htmshell.h +++ src/inc/htmshell.h @@ -168,21 +168,25 @@ * should just make paragraphs and return. * Method should be "query" or "get" or "post". param title - The HTML page title param head - The head text: can be a refresh directive or javascript param method - The function pointer to execute in the middle param method - The browser request method to use */ void htmShellWithHead( char *title, char *head, void (*doMiddle)(), char *method); /* tell htmlOut to not escape special HTML chars '<', '>' */ void htmlNoEscape(); /* tell htmlOut to escape special HTML chars '<', '>' */ void htmlDoEscape(); +/* Do not output a http header for error messages. Makes sure that very early + * errors are not shown back to the user but trigger a 500 error, */ +void htmlSuppressErrors(); + /* Include an HTML file in a CGI. * The file path is relative to the web server document root */ void htmlIncludeWebFile(char *file); /* Include an HTML file in a CGI */ void htmlIncludeFile(char *path);