a05ae5a901ce49be3ae8d4beb40308c65a16ef85 hiram Wed May 1 15:28:51 2019 -0700 correctly supply a Location header in the redirect refs #18869 diff --git src/hg/hubApi/hubApi.c src/hg/hubApi/hubApi.c index afeb9cc..981363b 100644 --- src/hg/hubApi/hubApi.c +++ src/hg/hubApi/hubApi.c @@ -1483,30 +1483,31 @@ else if (n > maxItemLimit) /* safety check */ apiErrAbort(err400, err400Msg, "requested maxItemsOutput '%s' greater than maximum limit allowed: %d", maxOut, maxItemLimit); else if (n < 1) apiErrAbort(err400, err400Msg, "requested maxItemsOutput '%s' can not be less than one", maxOut, maxItemLimit); else maxItemsOutput = n; } } } /* static void setGlobalCgiVars() */ static void redirectToHelp() /* redirect to the help page */ { puts("Content-Type:text/html"); hPrintf("Status: %d %s\n", err301, err301Msg); +hPrintf("Location: /goldenPath/help/api.html\n"); puts("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); } /* Null terminated list of CGI Variables we don't want to save * permanently. */ static char *excludeVars[] = {"Submit", "submit", "sourceSelected", "selectRadio", "ucscGenome", "publicHubs", "clade", NULL,}; int main(int argc, char *argv[]) /* Process command line. */