wsd/FileServer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 0c348575275a83d8f0977f700badcd05507dc07c Author: Pranav Kant <pran...@collabora.co.uk> Date: Tue Apr 25 11:30:12 2017 +0530 Bin superfluous object Poco::DateTime is enough to create an object representing the current date time, no need to create a timestamp first. Change-Id: Ib95b43c1f7ae4993a6d9f7ec6da1234ac2bf59aa diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp index b49d2c34..118bf054 100644 --- a/wsd/FileServer.cpp +++ b/wsd/FileServer.cpp @@ -184,8 +184,7 @@ void FileServerRequestHandler::handleRequest(const HTTPRequest& request, Poco::M { // TESTME: harder ... - do we even want ETag support ? std::ostringstream oss; - Poco::Timestamp nowTs; - Poco::DateTime now(nowTs); + Poco::DateTime now; Poco::DateTime later(now.utcTime(), int64_t(1000)*1000 * 60 * 60 * 24 * 128); oss << "HTTP/1.1 304 Not Modified\r\n" << "Date: " << Poco::DateTimeFormatter::format( _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits