From 87a5bb50c2bb9d1232e9160def0f85d5f05e7813 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 25 Sep 2008 16:06:29 +0000 Subject: 2008-09-26 Tatsuhiro Tsujikawa 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 --- test/HttpRequestTest.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/HttpRequestTest.cc') 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" -- cgit