URI: 
       Fix headers and date. - bitreich-httpd - Bitreich HTTPD service
  HTML git clone git://bitreich.org/bitreich-httpd git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-httpd
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
   DIR commit 1d63bfa9303355b61925256bb06169e17e38f4f5
   DIR parent f03e566220bca9b8371d4a188cbc5e580e4b2274
  HTML Author: Christoph Lohmann <20h@r-36.net>
       Date:   Fri, 24 Jul 2020 22:07:56 +0200
       
       Fix headers and date.
       
       Diffstat:
         M bitreich-httpd.c                    |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/bitreich-httpd.c b/bitreich-httpd.c
       @@ -39,7 +39,7 @@ printheaders(char *ctype)
        
                t = time(NULL);
                if (t > 0)
       -                printf("Date: %s\r\n", asctime(gmtime(&t)));
       +                printf("Date: %s", asctime(gmtime(&t)));
                printf("X-Future: Gopher ftw!\r\n");
                printf("Content-Type: %s\r\n", ctype);
                printf("X-Irritate: Be irritated.\r\n");
       @@ -73,6 +73,7 @@ servefile(char *path, char *ctype, int sock)
        
                printf("Content-Length: %ld\r\n", st.st_size);
                printf("\r\n");
       +        fflush(stdout);
        
                sendb = xmalloc(bufsiz);
                while ((len = read(fd, sendb, bufsiz)) > 0) {