summaryrefslogtreecommitdiff
path: root/test/HttpRequestTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-25 16:06:29 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-09-25 16:06:29 +0000
commit87a5bb50c2bb9d1232e9160def0f85d5f05e7813 (patch)
tree54b0684dc1a55dbedf851f2f7d86c9746d87bcd0 /test/HttpRequestTest.cc
parent789e1926cb5f07ce5a82c8d651dbd5a510759c8d (diff)
2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Reverted previous change. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and username is not in URI. * src/HttpRequest.cc * src/Request.cc * test/HttpRequestTest.cc * test/RequestTest.cc
Diffstat (limited to 'test/HttpRequestTest.cc')
-rw-r--r--test/HttpRequestTest.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc
index 41c58888..e4a8548b 100644
--- a/test/HttpRequestTest.cc
+++ b/test/HttpRequestTest.cc
@@ -349,7 +349,9 @@ void HttpRequestTest::testCreateRequest_ftp()
httpRequest.configure(_option.get());
- std::string expectedText = "GET ftp://localhost:8080/archives/aria2-1.0.0.tar.bz2 HTTP/1.1\r\n"
+ std::string expectedText =
+ "GET ftp://aria2user@localhost:8080/archives/aria2-1.0.0.tar.bz2"
+ " HTTP/1.1\r\n"
"User-Agent: aria2\r\n"
"Accept: */*\r\n"
"Host: localhost:8080\r\n"
@@ -368,7 +370,9 @@ void HttpRequestTest::testCreateRequest_ftp()
httpRequest.configure(_option.get());
- expectedText = "GET ftp://localhost:8080/archives/aria2-1.0.0.tar.bz2 HTTP/1.1\r\n"
+ expectedText =
+ "GET ftp://aria2user@localhost:8080/archives/aria2-1.0.0.tar.bz2"
+ " HTTP/1.1\r\n"
"User-Agent: aria2\r\n"
"Accept: */*\r\n"
"Host: localhost:8080\r\n"