Index: filed.c ================================================================== --- filed.c +++ filed.c @@ -202,11 +202,11 @@ cache->fd = fd; cache->len = len; cache->path = strdup(path); /* XXX:TODO: Determine */ - cache->type = "text/plain"; + cache->type = "application/octet-stream"; cache->lastmod = filed_format_time(cache->lastmod_b, sizeof(cache->lastmod_b), time(NULL) - 30); } else { filed_log_msg_debug("Cache hit for idx: %lu: PATH \"%s\"", (unsigned long) cache_idx, path); } @@ -285,11 +285,11 @@ return(path); } /* Return an error page */ static void filed_error_page(FILE *fp, const char *date_current, int error_number) { - char *error_string = "ERROR"; + char *error_string = "ERRORUnable to process request"; fprintf(fp, "HTTP/1.1 %i OK\r\nDate: %s\r\nServer: filed\r\nLast-Modified: %s\r\nContent-Length: %llu\r\nContent-Type: %s\r\nConnection: close\r\n\r\n%s", error_number, date_current, date_current, @@ -424,11 +424,13 @@ /* Handle socket */ filed_handle_client(fd); } - /* XXX:TODO: Report error */ + /* Report error */ + filed_log_msg("THREAD_DIED ABNORMAL"); + return(NULL); } /* Create worker threads */ static int filed_worker_threads_init(int fd, int thread_count) {