d2429b17bb096f6c406a2ae03fb5593f27fa53c1
hiram
  Mon Mar 18 14:17:07 2019 -0700
hash up the output properly for hubPublic and dbDb outputs refs #18869

diff --git src/hg/hubApi/hubApi.c src/hg/hubApi/hubApi.c
index 09e9dac..81847be 100644
--- src/hg/hubApi/hubApi.c
+++ src/hg/hubApi/hubApi.c
@@ -730,30 +730,31 @@
 if (sameOk("/",pathInfo))
     pathInfo = NULL;
 
 boolean commandError = FALSE;
 char *words[MAX_PATH_INFO];
 
 if (isNotEmpty(pathInfo))
     {
     setupFunctionHash();
     /*expect no more than MAX_PATH_INFO number of words*/
     struct hashEl *hel = parsePathInfo(pathInfo, words);
     /* verify valid API command */
 
     if (hel)	/* have valid command */
 	{
+        hPrintDisable();
 	puts("Content-Type:application/json");
 	puts("\n");
 	/* skip the first leading slash to simplify chopByChar parsing */
 //	pathInfo += 1;
 //	apiFunctionSwitch(hel, words);
         void (*apiFunction)(char **) = hel->val;
         (*apiFunction)(words);
 	return;
 	}
      else
 	commandError = TRUE;
     }
 
 puts("Content-Type:text/html");
 puts("\n");