1618f943df5d435b2ec6b1fa6738b0d50f90a19a jcasper Fri Jan 11 15:47:11 2019 -0800 Revamp of CIRM CGI look to match static pages, refs #22765 diff --git src/hg/lib/web.c src/hg/lib/web.c index 317a2bd..f598ada 100644 --- src/hg/lib/web.c +++ src/hg/lib/web.c @@ -92,30 +92,40 @@ { extraStyle = style; } void webPragmasEtc() /* Print out stuff that tells people not to cache us, and that we use the * usual character set and scripting langauge. (Normally done by webStartWrap) */ { printf("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html;CHARSET=iso-8859-1\">" "\n" "<META http-equiv=\"Content-Script-Type\" content=\"text/javascript\">" "\n" "<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">" "\n" "<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">" "\n" ); } +void webCirmPragmasEtc() +/* Print out stuff similar to webPragmasEtc (don't cache us, character set, etc.), but + * use values appropriate for a more modern website (like CIRM). */ +{ +printf("\t\t<meta charset=\"windows-1252\">\n" // Be nice to be utf-8, but that's a bigger issue to tackle + "\t\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n" + "\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n" + "\t\t<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->\n"); +} + void webStartText() /* output the head for a text page */ { /*printf("Content-Type: text/plain\n\n");*/ webHeadAlreadyOutputed = TRUE; webInTextMode = TRUE; webPushErrHandlers(); } static void webStartWrapperDetailedInternal(struct cart *theCart, char *db, char *headerText, char *textOutBuf, boolean withHttpHeader, boolean withLogo, boolean skipSectionHeader, boolean withHtmlHeader) /* output a CGI and HTML header with the given title in printf format */