summaryrefslogtreecommitdiff
path: root/test/HttpRequestTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-06-10 07:55:43 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-06-10 07:55:43 +0000
commitd5bb035642ed1402eea53ecc5a4a1fd4d104c08f (patch)
treeaac92bd775fe648d7ae9597cabcc7eeb2ee1a1ed /test/HttpRequestTest.cc
parentaa7cbf60ba1a76877366c977b24fdaf6657a883a (diff)
2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
* src/AbstractCommand.cc (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and MSG_MAX_TRY from error to info. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY. * src/message.h (MSG_TORRENT_DOWNLOAD_ABORTED): New definition. (MSG_DOWNLOAD_ABORTED): Added %s. (MSG_RESTARTING_DOWNLOAD): Added %s. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated. * src/PeerAbstractCommand.cc (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED * src/Request.h (cookieBox): Made ShardHandle. * src/RequestGroup.h, src/RequestGroup.cc (createNextCommandWithAdj): New function. * src/FileAllocationCommand.cc (executeInternal): Use createNextCommandWithAdj(). * src/CheckIntegrityCommand.cc (executeInternal): Use createNextCommandWithAdj(). Added --load-cookies command-option. * src/OptionHandlerFactory.cc (createOptionHandlers): Added PREF_LOAD_COOKIES. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser. Now aria2 can handle cookie's expiration date. * src/Cookie.h (expires): Changed its type to time_t. * src/main.cc: Added --load-cookies command-line option. * src/prefs.h (PREF_LOAD_COOKIES): New definition. * src/Util.h, src/Util.cc (httpGMT): New function. * src/Request.cc (Request): Initialize cookieBox using CookieBoxFactory. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class. * src/CookieParser.h, src/CookieParser.cc: New class. * src/main.cc: Chagned the default value of --metalink-servers to 5. * src/HttpResponseCommand.cc (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
Diffstat (limited to 'test/HttpRequestTest.cc')
-rw-r--r--test/HttpRequestTest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc
index 13e32ad3..144d9b95 100644
--- a/test/HttpRequestTest.cc
+++ b/test/HttpRequestTest.cc
@@ -317,10 +317,10 @@ void HttpRequestTest::testCreateRequest_with_cookie()
request->setUrl("http://localhost/archives/aria2-1.0.0.tar.bz2");
SegmentHandle segment = new Segment();
- Cookie cookie1("name1", "value1", "2007/1/1", "/archives", "localhost", false);
- Cookie cookie2("name2", "value2", "2007/1/1", "/archives/download", "localhost", false);
- Cookie cookie3("name3", "value3", "2007/1/1", "/archives/download", "tt.localhost", false);
- Cookie cookie4("name4", "value4", "2007/1/1", "/archives/download", "tt.localhost", true);
+ Cookie cookie1("name1", "value1", 1181473200, "/archives", "localhost", false);
+ Cookie cookie2("name2", "value2", 1181473200, "/archives/download", "localhost", false);
+ Cookie cookie3("name3", "value3", 1181473200, "/archives/download", "tt.localhost", false);
+ Cookie cookie4("name4", "value4", 1181473200, "/archives/download", "tt.localhost", true);
request->cookieBox->add(cookie1);
request->cookieBox->add(cookie2);