From dbc8f5b737607db38399385e3b94f8dec9b3576c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 7 Sep 2008 14:38:26 +0000 Subject: 2008-09-07 Tatsuhiro Tsujikawa Implemented the ability to get timestamp from remote HTTP server and apply it to local file. To enable this feature, --remote-time option is added. No usage text has been written yet. If several servers returns difference timestamp, then aria2 uses latest one. * src/CopyDiskAdaptor.cc * src/CopyDiskAdaptor.h * src/DirectDiskAdaptor.cc * src/DirectDiskAdaptor.h * src/DiskAdaptor.h * src/File.cc * src/File.h * src/HttpHeader.cc * src/HttpHeader.h * src/HttpResponse.cc * src/HttpResponse.h * src/HttpResponseCommand.cc * src/HttpResponseCommand.h * src/MultiDiskAdaptor.cc * src/MultiDiskAdaptor.h * src/OptionHandlerFactory.cc * src/RequestGroup.cc * src/RequestGroup.h * src/RequestGroupMan.cc * src/option_processing.cc * src/prefs.cc * src/prefs.h * test/CopyDiskAdaptorTest.cc * test/FileTest.cc * test/Makefile.am * test/Makefile.in * test/MultiDiskAdaptorTest.cc * test/TestUtil.cc --- src/HttpHeader.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/HttpHeader.cc') diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index 6fea1009..d7557e87 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -68,6 +68,8 @@ const std::string HttpHeader::CONTENT_LENGTH("Content-Length"); const std::string HttpHeader::CONTENT_RANGE("Content-Range"); +const std::string HttpHeader::LAST_MODIFIED("Last-Modified"); + const std::string HttpHeader::HTTP_1_1("HTTP/1.1"); const std::string HttpHeader::S200("200"); -- cgit