]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
* tiny 'file'-extract, now we can detect the type of an image. and set the mimetype...
[citadel.git] / webcit / webserver.c
index 9a409e3a5924a38806e6e6ddf971d9796e5525eb..c5f30c2ad7c0e4122e9ffec14b26195cf0d29e0e 100644 (file)
@@ -279,6 +279,7 @@ ssize_t client_write(const void *buf, size_t count)
        write(2, buf, count);
        write(2, "\033[30m", 5);
 #endif
+       fdflags = fcntl(WC->http_sock, F_GETFL);
 
         while (bytesWritten < count) {
                 if ((fdflags & O_NONBLOCK) == O_NONBLOCK) {
@@ -805,6 +806,7 @@ int main(int argc, char **argv)
        free(mo);
        lprintf(9, "Text domain: %s\n", textdomain("webcit"));
        lprintf(9, "Text domain Charset: %s\n", bind_textdomain_codeset("webcit","UTF8"));
+       preset_locale();
 #endif