Refreshing: set cookie, so a user switching to a new language gets to the appropriate...
authorWilfried Goesgens <dothebart@citadel.org>
Mon, 30 Jan 2012 23:24:05 +0000 (00:24 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 19 Feb 2012 11:00:14 +0000 (12:00 +0100)
webcit/webcit.c

index 944b457c86ab0caf1a5dc2cf536bbc601a0ab605..8a96a13410f84b150b9b329e9dcfe3b69af52b5c 100644 (file)
@@ -245,6 +245,7 @@ void http_redirect(const char *whichpage) {
        hprintf("Location: %s\r\n", whichpage);
        hprintf("URI: %s\r\n", whichpage);
        hprintf("Content-type: text/html; charset=utf-8\r\n");
+       stuff_to_cookie(0);
        begin_burst();
        wc_printf("<html><body>");
        wc_printf("Go <a href=\"%s\">here</A>.", whichpage);