0680d9f437ad8dc9f1536a7800c1f28b10edb4c4 max Wed Apr 12 16:15:53 2017 -0700 Taking back an edit that slipped in with an unrelated commit, thx Jonathan. diff --git src/hg/hgMenubar/hgMenubar.c src/hg/hgMenubar/hgMenubar.c index 212116e..b0c2378 100644 --- src/hg/hgMenubar/hgMenubar.c +++ src/hg/hgMenubar/hgMenubar.c @@ -29,32 +29,31 @@ printf ("\n", baseDir); } void printMenuBar(char *cgiPath, char *docRoot, char *pagePath, char *filePath) { char *navBarLoc = incFilePath(cgiPath, filePath, docRoot); struct lineFile *menuFile = lineFileOpen(navBarLoc, TRUE); char* oldLine = NULL; int lineSize = 0; char *cgiContainerPath = replaceChars(cgiPath, CGI_NAME, ""); char *newPath = makeRelativePath(pagePath, cgiContainerPath); char *newHref = catTwoStrings("href=\"", newPath); -if (getenv("NO_CONTENTYPE")==NULL) - printf ("Content-text: text/html\r\n\r\n"); +printf ("Content-type: text/html\r\n\r\n"); if (sameString(filePath, NAVBAR_INC_PATH)) printIncludes(newPath); while (lineFileNext(menuFile, &oldLine, &lineSize)) { // Not quite as robust as perl search and replace - no variable whitespace handling // Also lots of memory leakage - every line is reallocated and forgotten char *newLine = replaceChars(oldLine, OLD_HREF, newHref); printf("%s\n", newLine); } lineFileClose(&menuFile); }