update Sat Sep 12 12:37:01 PDT 2009
[pkgsrc.git] / wip / aria2 / patches / patch-ah
1 $NetBSD$
2
3 --- src/FtpConnection.cc.orig   2007-08-28 12:36:33.000000000 -0400
4 +++ src/FtpConnection.cc
5 @@ -73,13 +73,13 @@ void FtpConnection::sendType() const {
6  }
7  
8  void FtpConnection::sendCwd() const {
9 -  string request = "CWD "+req->getDir()+"\r\n";
10 +  string request = "CWD "+Util::urldecode(req->getDir())+"\r\n";
11    logger->info(MSG_SENDING_REQUEST, cuid, request.c_str());
12    socket->writeData(request);
13  }
14  
15  void FtpConnection::sendSize() const {
16 -  string request = "SIZE "+req->getFile()+"\r\n";
17 +  string request = "SIZE "+Util::urldecode(req->getFile())+"\r\n";
18    logger->info(MSG_SENDING_REQUEST, cuid, request.c_str());
19    socket->writeData(request);
20  }
21 @@ -116,7 +116,7 @@ void FtpConnection::sendRest(const Segme
22  }
23  
24  void FtpConnection::sendRetr() const {
25 -  string request = "RETR "+req->getFile()+"\r\n";
26 +  string request = "RETR "+Util::urldecode(req->getFile())+"\r\n";
27    logger->info(MSG_SENDING_REQUEST, cuid, request.c_str());
28    socket->writeData(request);
29  }