ed2944f615eb64c06c10b868754a60926a04a412 max Tue Sep 15 05:47:46 2026 -0700 Four leftovers from the Content-Type sweep, refs #38353 edwWebAuthLogin and edwWebAuthLogout still printed a blank line of their own after cgiPrintContentType(), which already ends the header block, so every response began with an empty line in the body. hgPhyloPlace built its own Content-Type line from a macro in five places. hgChooseDb's fail() sent a Status line and no Content-Type at all, so a bad request came back with a body apache had no type for. diff --git src/hg/encode3/encodeDataWarehouse/edwWebAuthLogout/edwWebAuthLogout.c src/hg/encode3/encodeDataWarehouse/edwWebAuthLogout/edwWebAuthLogout.c index 7b530b240f4..4e00a28cd8e 100644 --- src/hg/encode3/encodeDataWarehouse/edwWebAuthLogout/edwWebAuthLogout.c +++ src/hg/encode3/encodeDataWarehouse/edwWebAuthLogout/edwWebAuthLogout.c @@ -1,19 +1,18 @@ /* edwWebAuthLogout - A tiny little program to help manage Persona logouts. Specifically * a little CGI that unsets the email cookie. */ /* Copyright (C) 2013 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "cheapcgi.h" int main(int argc, char *argv[]) /* Process command line. */ { printf("Set-Cookie: email=nobody; expires=Thu, 01 Jan 1970 00:00:00 GMT\r\n"); printf("Set-Cookie: sid=x; expires=Thu, 01 Jan 1970 00:00:00 GMT\r\n"); cgiPrintContentType("text/plain"); -printf("\r\n"); printf("logged out\n"); return 0; }