Index: src/OFHTTPServer.m ================================================================== --- src/OFHTTPServer.m +++ src/OFHTTPServer.m @@ -478,10 +478,16 @@ [sock writeFormat: @"HTTP/1.1 %d %s\r\n" @"Server: %@\r\n", [reply statusCode], status_code_to_string([reply statusCode]), [server name]]; + + if ([replyHeaders objectForKey: @"Date"] == nil) { + OFString *date = [[OFDate date] + dateStringWithFormat: @"%a, %d %b %Y %H:%M:%S GMT"]; + [sock writeFormat: @"Date: %@\r\n", date]; + } if (requestType != OF_HTTP_REQUEST_TYPE_HEAD) [sock writeFormat: @"Content-Length: %zu\r\n", [replyData count] * [replyData itemSize]];