* BIG rewrite of header handling and slimming of context_loop and session_loop; shuff...
[citadel.git] / webcit / mainmenu.c
index 1ce5e5ee60c7ee9985549667b20560634739d9cf..ab3d2f38ab51ca6ebd484a74b41b52ffa924e335 100644 (file)
@@ -62,7 +62,7 @@ void display_generic(void)
        wprintf("<br /><textarea name=\"g_input\" rows=10 cols=80 width=80></textarea><br />\n");
 
        wprintf("<font size=-2>");
-       wprintf(_("Detected host header is %s://%s"), (is_https ? "https" : "http"), ChrPtr(WC->http_host));
+       wprintf(_("Detected host header is %s://%s"), (is_https ? "https" : "http"), ChrPtr(WC->Hdr->http_host));
        wprintf("</font>\n");
        wprintf("<input type=\"submit\" name=\"sc_button\" value=\"%s\">", _("Send command"));
        wprintf("&nbsp;");
@@ -200,7 +200,7 @@ void display_shutdown(void)
                output_headers(1, 0, 0, 0, 1, 0);
                DoTemplate(HKEY("display_serverrestart"), NULL, &NoCtx);
                end_burst();
-               lingering_close(WC->http_sock);
+               lingering_close(WC->Hdr->http_sock);
                sleeeeeeeeeep(10);
                serv_printf("NOOP");
                serv_printf("NOOP");